Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXNetworkAddress::GetMask

The GetMask method retrieves the subnet mask for the IP address.

HRESULT GetMask(
  LPSOCKADDR Mask,
  DWORD* MaskLength
);

Parameters

Mask
[out] Pointer to a sockaddr structure that on return receives the subnet mask for the IP address.
MaskLength
[in, out] Pointer to a variable that specifies the length, in bytes, of the structure pointed to by the Mask parameter. On return, MaskLength receives the actual size, in bytes, of the subnet mask returned in the Mask parameter.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wspfwext.idl.

See Also

IFWXNetworkAddress