Expand Minimize

DhcpGetThreadOptions function

The DhcpGetThreadOptions function retrieves the current thread options as set by DhcpSetThreadOptions.

Syntax


DWORD DhcpGetThreadOptions(
  _Out_  LPDWORD pFlags,
  _Out_  LPVOID Reserved
);

Parameters

pFlags [out]

Set of bit flags as set by a previous call to DhcpSetThreadOptions. If no thread options are set, the return value is 0. Currently, the only bit flag that can be set is as follows.

ValueMeaning
DHCP_FLAGS_DONT_ACCESS_DS

Do not access the directory service while the DHCP thread is executing. After this option is set, the only functions that can access the domain directory service are:

 

Reserved [out]

Reserved. This parameter must be set to null.

Return value

This function returns ERROR_SUCCESS upon a successful call. Otherwise, it returns one of the DHCP Server Management API Error Codes.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2008 R2 [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DhcpSetThreadOptions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.