ldap_result2error function
The ldap_result2error function parses a message and returns the error code.
Syntax
ULONG ldap_result2error( _In_ LDAP *ld, _In_ LDAPMessage *res, _In_ ULONG freeit );
Parameters
- ld [in]
-
The session handle.
- res [in]
-
The result of an LDAP operation, as returned by ldap_result, or one of the synchronous API operation calls.
- freeit [in]
-
Determines whether the LDAPMessage, pointed to by the res parameter, is freed. Setting freeit to TRUE frees the message by calling the ldap_msgfree function.
Return value
If the function succeeds, the return value is LDAP_SUCCESS.
If the function fails, it returns an error code. For more information, see Return Values.
Remarks
Multithreading: Calls to ldap_result2error are thread-safe.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also