Directory Services


The ldap_close_extended_op function ends a request that was made by calling ldap_extended_operation.

ULONG ldap_close_extended_op(
  LDAP* ld,
  ULONG MessageNumber


[in] The session handle.
[out] The message ID for the request.

Return Values

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.


After sending an extended request, or a series of such requests, to an LDAP server, call ldap_close_extended_op to notify the server that the client has finished making requests. Be aware that these extended operation functions are available only with LDAP, version 3 or later. These functions allow a client to send a "free-for-all" request, for any sort of data or action, to an LDAP 3 server.

Multithreading: Calls to ldap_close_extended_op are thread-safe.


Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.

See Also

Functions, ldap_extended_operation, Return Values