Platform SDK: Active Directory, ADSI, and Directory Services |
A client calls ldap_abandon to cancel an in-progress asynchronous LDAP call.
ULONG ldap_abandon( LDAP* ld, ULONG msgid );
If the function succeeds (that is, if the cancellation is successful), the return value is zero.
If the function fails, the return value is –1.
The ldap_abandon function first checks to see whether the operation has been completed. If it has, the message ID is deleted; otherwise, the call goes to the server to cancel the operation. Note that a successful call to ldap_abandon destroys the message ID. Therefore, you cannot call ldap_result to obtain results with that message ID, even if the server completed the operation.
There is no server response to ldap_abandon; thus, there is no guarantee that the call reached the server.
Multithreading: Calls to ldap_abandon are thread-safe.
Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.