ldap_result2error function
Applies to: desktop apps only
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 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 2/3/2012