Platform SDK: Active Directory, ADSI, and Directory Services

ldap_close_extended_op

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
);

Parameters

ld
[in] The session handle.
MessageNumber
[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. See Return Values for more information.

Remarks

After sending an extended request, or a series of such requests, to an LDAP server, call ldap_close_extended_op to let the server know that the client has finished making requests. Note 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 information or action, to an LDAP 3 server.

Multithreading: Calls to ldap_close_extended_op are thread-safe.

Requirements

  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.

See Also

Functions, ldap_extended_operation, Return Values