Packet Sniffer SDK DLL Edition

HNQueue :: Methods :: QueStop

 Previous Next

QueStops internal queue thread.

Syntax:

DWORD __stdcall QueStop(HANDLE hQue);

Parameters:

hQue

[in] HNQueue object handle.

Return values:

HNERR_OKNo errors.

Description:

Use QueStop to close the internal queue thread created by QueStart function. While QueStop function execution OnThreadEnd event will be called in this thread context, and then it will be closed.

This function call is synchronized with this thread closing, so QueStop function may be completed successfully only after correct completion of the OnPacketReceive event handler.
See also:HNQueue, QueStart, OnThreadEnd