Packet Sniffer SDK DLL Edition

HNFileAdapter :: Events :: FAdpSetOnThreadBegin

 Previous Next

Sets the address and the parameter value for the OnThreadBegin event handler (see HNFN_THREADBEGIN).

Syntax:

FARPROC __stdcall FAdpSetOnThreadBegin(HANDLE hFAdp, FARPROC pfOnThreadBegin, DWORD_PTR Param);

Parameters:

hFAdp

[in] HNFileAdapter object handle.

pfOnThreadBegin

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

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

Description:

Use FAdpSetOnThreadBegin to set the address and the parameter value for the OnThreadBegin event handler. This event handler is called in the context of the internal component thread immediately after successful FAdpCreateFile, FAdpOpenFile functions execution.

See also:HNFileAdapter, HNFN_THREADBEGIN, FAdpCreateFile, FAdpOpenFile