Address
Provides the address for the IP Address resource. The following table summarizes the attributes of the Address property.
Attribute | Value |
---|---|
Data type | Null-terminated Unicode string |
Access | Read/write |
Status | Required |
Structure | CLUSPROP_SZ |
Maximum | None (but see Maximum Property Size.) |
Default | NULL |
Remarks
The data in the Address property must be formatted as xxx.xxx.xxx.xxx where xxx represents a decimal number between 0 and 255. The value 255.255.255.255 is not valid.
The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.
Examples
The property value portion of a property list entry for Address can be set with the following example code.
WCHAR szAddressData[] = L"111.244.221.254";
CLUSPROP_SZ_DECLARE( AddressValue,
sizeof(szAddressData) / sizeof(WCHAR) );
AddressValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
AddressValue.cbLength = sizeof( szAddressData );
StringCbCopy( AddressValue.sz,
AddressValue.cbLength,
szAddressData );
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter |