Packet Sniffer SDK DLL Edition

HNAdapterConfig :: Methods :: AdpCfgGetSubnetMask

 Previous Next

Returns the subnet mask that matches to the corresponding IP address index.

Syntax:

LPCTSTR __stdcall AdpCfgGetSubnetMask(HANDLE hCfg, INT Index);

Parameters:

hCfg

[in] HNAdapterConfig object handle.

Index

[in] Subnet mask index. Value may be set from 0 to AdpCfgGetIpCount - 1.

Return values:

If the function succeeds, returned value will contain a subnet mask string. Otherwise it will contain an empty string.

Description:

Use this function to obtain the subnet mask corresponding to the IP address with the same index obtained by the AdpCfgGetIp function call.

Requirements:

Unicode

Implemented as AdpCfgGetSubnetMaskW (Unicode) and AdpCfgGetSubnetMaskA (ANSI).

See also:HNAdapterConfig, AdpCfgGetIpCount, AdpCfgGetIp