Packet Sniffer SDK DLL Edition

HNQueue :: Events :: QueSetOnDelete

 Previous Next

Sets the address and the parameter value for the OnDelete event handler (see HNFN_DELETEITEMS).

Syntax:

FARPROC __stdcall QueSetOnDelete(HANDLE hQue, FARPROC pfOnDelete, DWORD_PTR Param);

Parameters:

hQue

[in] HNQueuer object handle.

pfOnDelete

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

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

Description:

Use QueSetOnDelete to set the address and the parameter value for the OnDelete event handler. This event handler is called during QueFreeItems function execution.

See also:HNQueue, HNFN_DELETEITEMS, QueFreeItems