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

ADSI Functions

· 52CE 我爱测

Active Directory Service Interfaces expose the following helper functions to clients that do not use Automation.

Active Directory Service Interfaces expose the following helper functions to clients that do not use Automation.

Function Description
ADsBuildEnumerator Creates an enumerator object for the specified ADSI container object.
ADsBuildVarArrayInt Builds a variant array from an array of DWORDs.
ADsBuildVarArrayStr Builds a variant array from an array of Unicode strings.
ADsEncodeBinaryData Converts a blob of binary data to the format suitable for a search filter.
ADsEnumerateNext Populates a variant array with elements retrieved from the specified enumerator object.
ADsFreeEnumerator Frees an enumerator object previously created by ADsBuildEnumerator.
ADsGetLastError Retrieves the last error code value of the calling thread.
ADsGetObject Binds to an ADSI object using the current credentials.
ADsOpenObject Binds to an ADSI object using specified credentials
ADsSetLastError Sets the error code value of the calling thread.
AllocADsMem Allocates a block of memory.
AllocADsStr Allocates memory for a given string.
FreeADsMem Frees the memory allocated by AllocADsMem.
FreeADsStr Frees the memory allocated for the given string.
ReallocADsMem Assigns the existing memory content to a newly created memory location.
ReallocADsStr Replaces an existing string with a new one.

The following ADSI functions are obsolete.

Function Description
AdsFreeAllErrorRecords Obsolete.
AdsDecodeBinaryData Obsolete.
PropVariantToAdsType Obsolete.
AdsTypeToPropVariant Obsolete.
AdsFreeAdsValues Obsolete.
InitAdsMem Obsolete.
AssertAdsmemLeaks Obsolete.
DumpMemorytracker Obsolete.

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)

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

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