The GetMask method retrieves the subnet mask for the IP address.
HRESULT GetMask( [out] LPSOCKADDR Mask, [in, out] DWORD* MaskLength );
Pointer to a sockaddr structure that on return receives the subnet mask for the IP address.
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.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Server | Requires Windows Server 2008. |
---|---|
Version | Requires Forefront Threat Management Gateway (TMG). |
Header |
Declared in Wspfwext.idl. |
DLL |
Requires Wspsrv.exe. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.