大网数据广告活动
域与目录服务

REGDSAPI.CPP

· 52CE 我爱测

In the example provider component, functions that represent an API that directly accesses the native operating system are in Regdsapi.cpp.

In the example provider component, functions that represent an API that directly accesses the native operating system are in Regdsapi.cpp. The example provider component implements its directory service in the registry. To write a provider that accesses your own directory service, create your own implementations of this API. Supported functions are listed in the following table.

Method Description
SampleDSOpenObject Open this object by name. If the schema class type parameter is NULL, fill in the type found. Retrieve a handle on the object.
SampleDSCloseObject Use the handle retrieved by SampleDSOpenObject.
SampleDSRDNEnum Retrieve the handle on an enumerator object to manage the enumeration of relative distinguished names (RDNs) from a container object.
SampleDSNextRDN Using the handle retrieved by SampleDSRDNEnum, get the next relative distinguished name from this container object.
SampleDSFreeEnum Free the enumerator object allocated in SampleDSRDNEnum.
SampleDSModifyObject Modify properties of an object in the directory service given the handle of the object and a list of attributes and their values.
SampleDSReadObject Read the properties of the object from the directory service. Map the syntax from the native storage to the appropriate ADS syntax values. Handle properties with multiple values accordingly.
SampleDSGetPropertyDefinition In the schema, look up all property definitions and their attributes for this type of schema class object.
SampleDSGetPropertyDefinition In the schema, look up this property and its attributes by name.
SampleDSFreePropertyDefinition Free memory allocated by GetPropertyDefinition.
SampleDSGetTypeText Get the schema class type of an object in text format.
SampleDSGetType Get the schema class type of an object.
SampleDSGetPropertyInfo Given a handle on the schema class object and a property name, retrieve the property information, like syntax, and so on.
FreeList Free the memory used by a LPWSTR_LIST.
SampleDSGetClassDefinition Retrieve the set of all schema class definitions and their associated data from the schema.
SampleDSGetClassDefinition Retrieve data about a particular schema class in the schema.
SampleDSGetClassInfo Given the name of a schema class, look up its associated data, like mandatory properties.
SampleDSAddObject Add an object in the directory service.
SampleDSRemoveObject Remove an object from the directory service.
SampleDSCreateBuffer Create a memory buffer for attribute data and operation data.
SampleDSFreeBuffer Free the buffer created in SampleDSCreateBuffer.

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.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。