ldap_get_option function
The ldap_get_option function retrieves the current values of session-wide parameters.
Syntax
ULONG ldap_get_option( _In_ LDAP *ld, _In_ int option, _Out_ void *outvalue );
Parameters
- ld [in]
-
The session handle.
- option [in]
-
The name of the option accessed. For more information and a list of allowable options and their values, see the following Remarks section.
- outvalue [out]
-
The address of the option value. The actual type of this parameter depends on the setting of the option parameter.
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
For more information and a description of optional settings that apply to an LDAP session, see Session Options. The outvalue value returns a pointer to an allocated block of memory of the type listed in the Session Options table; this memory should be freed using ldap_memfree when the data is no longer required, unless it is explicitly mentioned in the Session Options table not to free the returned memory.
Multithreading: The ldap_get_option function is thread-safe.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
ldap_get_optionW (Unicode) and ldap_get_option (ANSI) |
See also
- Functions
- ldap_memfree
- ldap_set_option
- Return Values
- Session Options
- Getting and Setting Session Options