AddressMask Property for Networks

The AddressMask property provides the mask which distinguishes the network and host portions of an address.

Quick Info

Type: Null-terminated Unicode string
Access: Read-only
Function: ClusterNetworkControl
Structure: CLUSPROP_SZ
Control Code: CLUSCTL_NETWORK_GET_RO_COMMON_PROPERTIES

Remarks

The data in the AddressMask property is formatted as xxx.xxx.xxx.xxx where xxx represents a decimal number between 0 and 255.

When ClusterNetworkControl processes the CLUSCTL_NETWORK_GET_RO_COMMON_PROPERTIES control code, it returns a property list that includes the AddressMask 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 AddressMaskValue;
LPCWSTR AddressMaskData = L "255.255.0.0";
AddressMaskValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
AddressMaskValue.cbLength = sizeof(AddressMaskData);
lstrcpyW(AddressMaskValue.sz, AddressMaskData);
 

Because the AddressMask property is read-only, it cannot be changed using the CLUSCTL_NETWORK_SET_COMMON_PROPERTIES control code.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.