共用方式為


EnableDhcp

Enables DHCP on the IP Address resource. The following table summarizes the attributes of the EnableDhcp property.

Attribute Value
Data type DWORD
Access Read/write
Status Required
Structure CLUSPROP_DWORD
Minimum FALSE (0) - disable DHCP
Maximum TRUE (1) - enable DHCP
Default FALSE (0)

Examples

The property value portion of a property list entry for EnableDhcp can be set with the following example code.

DWORD          EnableDhcpData = TRUE;
CLUSPROP_DWORD EnableDhcpValue;

EnableDhcpValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
EnableDhcpValue.cbLength  = sizeof(DWORD);
EnableDhcpValue.dw        = EnableDhcpData;

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

See also

IP Address Private Properties

CLUSPROP_DWORD