Packet Sniffer SDK DLL Edition

HNAdapter :: Events :: AdpSetOnAsyncRequest

 Previous Next

Sets the address and the parameter value for the OnAsyncRequest event handler (see HNFN_ASYNCREQUEST).

Syntax:

FARPROC __stdcall AdpSetOnAsyncRequest(HANDLE hAdp, FARPROC pfOnAsyncRequest, DWORD_PTR Param);

Parameters:

hAdp

[in] HNAdapter object handle.

pfOnAsyncRequest

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

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

Description:

Use AdpSetOnAsyncRequest to set the address and the parameter value for the OnAsyncRequest event handler. This event handler is called after the AdpAsyncRequest function call.

See also:HNAdapter, AdpAsyncRequest, HNFN_ASYNCREQUEST