Packet Sniffer SDK VCL Edition

HNFileAdapter :: Methods :: RewindFile

 Previous Next

Repositions the packet pointer to the beginning of a file.

Syntax:

function RewindFile() : DWORD;

Return values:

HNERR_OKOperation was completed successfully.
HNERR_ADAPTER_NOT_OPENEDThe CAP file has not been opened, see the HNFileAdapter.OpenFile function.
HNERR_INCOMPATIBLE_MODEIncompatible mode. Occurs if the CAP was is not opened for reading (see HNFileAdapter.OpenFile).
HNERR_READ_FILEFile read error.

Description:

Use RewindFile to reposition packet pointer to the first packet in the file. This function may be useful if you need to re-read CAP file content, for sequential packets reading please use HNFileAdapter.Get_NextPacket function.

See also:HNFileAdapter, HNFileAdapter.OpenFile, HNFileAdapter.Get_NextPacket