Share via


ldap_get_option (Compact 2013)

3/26/2014

This function retrieves the current values of session-wide parameters.

Syntax

ULONG ldap_get_option(
  LDAP* ld,
  int option,
  void* outvalue
);

Parameters

  • ld
    [in] Session handle.
  • option
    [in] Name of the option being accessed.
  • outvalue
    [out] Address of the session-option value. The actual type of this parameter depends on the setting of the option parameter. For more information, see Session Options.

Return Value

If this function succeeds, the return value is LDAP_SUCCESS.

If this function fails, it returns an error code. See the LDAP_RETCODE enumeration for a list of possible return values.

Remarks

In a multithreading environment, calls to this function are thread-safe.

Requirements

Header

winldap.h

Library

wldap32.lib

See Also

Reference

LDAP Session Functions
LDAP_RETCODE
ldap_set_option