ADSI Functions
ADSI Functions

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

FunctionDescription
ADsBuildEnumeratorCreates an enumerator object for the specified ADSI container object.
ADsBuildVarArrayIntBuilds a variant array from an array of DWORDs.
ADsBuildVarArrayStrBuilds a variant array from an array of Unicode strings.
ADsEncodeBinaryDataConverts a blob of binary data to the format suitable for a search filter.
ADsEnumerateNextPopulates a variant array with elements retrieved from the specified enumerator object.
ADsFreeEnumeratorFrees an enumerator object previously created by ADsBuildEnumerator.
ADsGetLastErrorRetrieves the last error code value of the calling thread.
ADsGetObjectBinds to an ADSI object using the current credentials.
ADsOpenObjectBinds to an ADSI object using specified credentials
ADsSetLastErrorSets the error code value of the calling thread.
AllocADsMemAllocates a block of memory.
AllocADsStrAllocates memory for a given string.
FreeADsMemFrees the memory allocated by AllocADsMem.
FreeADsStrFrees the memory allocated for the given string.
ReallocADsMemAssigns the existing memory content to a newly created memory location.
ReallocADsStrReplaces an existing string with a new one.

 

The following ADSI functions are obsolete.

FunctionDescription
AdsFreeAllErrorRecordsObsolete.
AdsDecodeBinaryDataObsolete.
PropVariantToAdsTypeObsolete.
AdsTypeToPropVariantObsolete.
AdsFreeAdsValuesObsolete.
InitAdsMemObsolete.
AssertAdsmemLeaksObsolete.
DumpMemorytrackerObsolete.

 

Send comments about this topic to Microsoft

Build date: 11/12/2009

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View