Packet Sniffer SDK DLL Edition

HNAdapter :: Properties :: AdpGetConnectStatus

 Previous Next

Returns the status of the physical connection with the network.

Syntax:

BOOL __stdcall AdpGetConnectStatus(HANDLE hAdp);

Parameters:

hAdp

[in] HNAdapter object handle.

Return values:

If the function succeeds the return value will be the network adapter connection status: TRUE if it is plugged, and FALSE if it is unplugged.

Description:

Use AdpGetConnectStatus only after the network adapter has been opened successfully (see AdpOpenAdapter). AdpGetConnectStatus may be useful if you need to define whether the network adapter is plugged or not.

Changes of the device connection status may also be traced by OnStateChange event handler.

See also:HNAdapter, AdpOpenAdapter, OnStateChange