Packet Sniffer SDK DLL Edition

HNFileAdapter :: Methods :: FAdpRewindFile

 Previous Next

Repositions the packet pointer to the beginning of a file.

Syntax:

DWORD __stdcall FAdpRewindFile(HANDLE hFAdp);

Parameters:

hFAdp

[in] HNFileAdapter object handle.

Return values:

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

Description:

Use FAdpRewindFile 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 FAdpGetNextPacket function.

See also:HNFileAdapter, FAdpOpenFile, FAdpGetNextPacket