Packet Sniffer SDK DLL Edition

HNAdapterConfig :: Properties :: AdpCfgGetAccessibleState

 Previous Next

Returns the network adapter accessibility status.

Syntax:

BOOL __stdcall AdpCfgGetAccessibleState(HANDLE hCfg);

Parameters:

hCfg

[in] HNAdapterConfig object handle.

Return values:

If the function succeeds the return value will be the network adapter accessibility status.

Description:

Use AdpCfgGetAccessibleState to get the network adapter accessibility status. If AccessibleState = FALSE, the network adapter is unplugged or its data from the system registry does not match to the current hardware configuration.

If AdpCfgGetAccessibleState returns TRUE, the network adapter is accessible and you can open it by the AdpOpenAdapter function call.

See also:HNAdapterConfig, AdpOpenAdapter