Packet Sniffer SDK DLL Edition

HNAdapter :: Events :: AdpSetOnAsyncSend

 Previous Next

Sets the address and the parameter value for the OnAsyncSend event handler (see HNFN_ASYNCSEND).

Syntax:

FARPROC __stdcall AdpSetOnAsyncSend(HANDLE hAdp, FARPROC pfOnAsyncSend, DWORD_PTR Param);

Parameters:

hAdp

[in] HNAdapter object handle.

pfOnAsyncSend

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

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 pfOnAsyncSend parameter.

Description:

Use AdpSetOnAsyncSend to set the address and the parameter value for the OnAsyncSend event handler. This event handler is called after the AdpAsyncSend and AdpAsyncSendEx functions calls.

See also:HNAdapter, HNFN_ASYNCSEND, AdpAsyncSend, AdpAsyncSendEx