CGENOBJ.CPP

In the example provider component, generic Active Directory object methods, supported in cgenobj.cpp, are listed in the following table.

Method Description
CSampleDSGenObject::CSampleDSGenObject Standard constructor.
CSampleDSGenObject::~CSampleDSGenObject Standard destructor.
CSampleDSGenObject::CreateGenericObject Create an ADS generic object. Initialize as appropriate.
CSampleDSGenObject::SampleDSCreateObject Create this object in its parent container.
CSampleDSGenObject::SampleDSSetObject Save the properties of this object (clear the cache).
CSampleDSGenObject::AllocateGenObject Create a generic object and load its type data.
CSampleDSGenObject::QueryInterface Return the requested interface pointer, if available.
Standard IADs methods, including implementations for: Get (including mapping from native data type to VARIANT type) Put (including mapping from VARIANT type to native data type)
GetInfo (refresh the property cache)
SetInfo (save the property cache)
Standard IADsContainer methods, including implementations for: GetObjectget__NewEnum
get_Filter
Create
Delete
ConvertSafeArrayToVariantArray Utility routine.