DhcpSetThreadOptions function

The DhcpSetThreadOptions function sets options on the currently executing DHCP thread.

Syntax


DWORD DhcpSetThreadOptions(
  _In_ DWORD  Flags,
  _In_ LPVOID Reserved
);

Parameters

Flags [in]

Set of bit flags indicating thread settings. If no thread options are set, the 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 as follows:

 

Reserved [in]

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.

Remarks

DhcpSetThreadOptions currently allows only one option to be set.

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

DhcpGetThreadOptions

 

 

Show: