In the example provider component, the functions for the schema class object are contained in cclsobj.cpp.
The CSampleDSClass class is defined in this file. CSampleDSClass is defined with methods and properties listed in the following table.
| Method | Description |
|---|---|
| CSampleDSClass | Standard constructor. |
| ~CSampleDSClass | Standard destructor. |
| CreateClass | Create an ADs schema class object. Lookup attribute definitions by calling SampleDSGetClassDefinition. |
| CreateClass | Create a schema class object, given the attribute definitions, setting known attributes, such as those listed in IADsClass::MandatoryAttributes. |
| AllocateClassObject | Create a schema class object and load its type data. |
| QueryInterface | Return the requested interface pointer, if available. |
| Standard IADs methods. | Standard IADs interface methods included in this file. |
| Standard IADsClass methods. | Standard IADsClass interface methods included in this file. |
| CreatePropertyList | Create a list of properties associated with this schema class by calling CreatePropertyEntry. |
| CreatePropertyEntry | Create one property object in this schema class. |
| FreePropertyEntry | Free the entry made in CreatePropertyEntry. |
| MakeVariantFromPropList | Create an array of VARIANTS from the property list created by CreatePropertyList. Can be used in the implementation of IADsClass::MandatoryAttributes and so on. |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
