Packet Sniffer SDK DLL Edition

HNAdapter :: Events :: AdpSetOnStatistics

 Previous Next

Sets the address and the parameter value for the OnStatistics event handler (see HNFN_STATISTICS).

Syntax:

FARPROC __stdcall AdpSetOnStatistics(HANDLE hAdp, FARPROC pfOnStatistics, DWORD_PTR Param);

Parameters:

hAdp

[in] HNAdapter object handle.

pfOnStatistics

[in] Event handler function address. This function must be declared as HNFN_STATISTICS.

Param

[in] Event handler parameter. This parameter is sent to the event handler each time it is called.

Return values:

If the function succeeds the return value will be the value of the pfOnStatistics parameter.

Description:

Use AdpSetOnStatistics to set the address and the parameter value for the OnStatistics event handler. This event handler is called immediately after the requested statistics has been received (AdpGetAsyncStatistics function call).

See also:HNAdapter, HNStatisticsType, AdpGetAsyncStatistics