IPMask Property of the IFPCSubnet Interface

The IPMask property gets or sets the IP mask of the subnet.

	BSTR bstrIPMask
	BSTR** pbstrIPMask



Pointer to a BSTR that is set on return to a string value specifying the IP mask of the subnet.


BSTR that specifies the IP mask of the subnet.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

[Visual Basic]
Property IPMask As String

Property Value

String that specifies the IP mask of the subnet.


This property is read/write.

The subnet mask is specified in this property as a string in dotted-decimal format. Its binary value should consist of a series of ones followed by a series of zeros. These series of bits separate the IP address specified in the IPAddress property into two parts. The first part becomes a network address, and the bits of the second part are reserved for all of the possible host addresses in the network segment.

The subnet mask typically consists of zero, one, two, or three binary octets that are represented in dotted-decimal format by the decimal number 255 and one binary octet that contains a series of ones (which may be empty) followed by a series of zeros and is represented by one of the following decimal numbers:


Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).

Declared in Msfpccom.idl.


Requires Msfpccom.dll.

See Also


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.