Address Property for IP Addresses

The Address property provides the address for the IP Address resource.

Quick Info

Type: Null-terminated Unicode string
Access: Read/write
Status: Required
Function: ClusterResourceControl
Structure: CLUSPROP_SZ
Control Code: CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES

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.

When ClusterResourceControl processes the CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES control code, it returns a property list that includes the Address property as one of the entries. The property value portion of the entry contains a CLUSPROP_SZ structure that is set as follows:

CLUSPROP_SZ AddressValue;
LPCWSTR AddressData = L "111.244.221.454";
AddressValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
AddressValue.cbLength = sizeof(AddressData);
lstrcpyW(AddressValue.sz, AddressData);