Packet Sniffer SDK DLL Edition

HNAdapter :: Methods :: AdpGetLostCount

 Previous Next

Returns the number of the packets lost by the PSSDK internal driver.

Syntax:

DWORD __stdcall AdpGetLostCount(HANDLE hAdp, DWORD *HiValue);

Parameters:

hAdp

[in] HNAdapter object handle.

HiValue

[out] The pointer to the variable, in which the high DWORD of the result will be stored. May be set to NULL if the application does not need these data.

Return values:

If the function succeeds the return value will be the low-order doubleword of the number of the packets lost by the Packet Sniffer SDK internal driver, and if HiValue is non-NULL, the function will put the high-order doubleword of this number into the variable pointed to by that parameter.

Description:

Use AdpGetLostCount after opening the loopback adapter and executing the AdpUpdateUserStatistics function.

This function returns the value of the HNAdapter internal packets counter. This value is set with the PSSDK internal driver packets counter value syncronously after AdpUpdateUserStatistics function call. So, to get the latest packets counter value you should call AdpGetLostCount immediately after AdpUpdateUserStatistics function call.

See also:HNAdapter, AdpOpenAdapter, AdpUpdateUserStatistics