Packet Sniffer SDK DLL Edition

HNUserFilter :: Events :: BpfSetOnBPFAsmError

 Previous Next

Sets the address and the parameter value for the OnBPFAsmError event handler (see HNFN_BPF_ERROR_HANDLER).

Syntax:

FARPROC __stdcall BpfSetOnBPFAsmError(HANDLE hFtr, FARPROC pfOnBPFAsmError, DWORD_PTR Param);

Parameters:

hFtr

[in] HNUserFilter object handle.

pfOnBPFAsmError

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

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

Description:

Use BpfSetOnBPFAsmError to set the address and the parameter value for the OnBPFAsmError event handler. This event handler is called to show errors during the compilation of BPF program written in BPF assembler.

See also:HNUserFilter, HNFN_BPF_ERROR_HANDLER