Packet Sniffer SDK DLL Edition

HNFileAdapter :: Methods :: FAdpGetOpenTime

 Previous Next

Return the timestamp of the first packet stored in a CAP file.

Syntax:

DWORD __stdcall FAdpGetOpenTime(HANDLE hFAdp, DWORD *HiValue);

Parameters:

hFAdp

[in] HNFileAdapter object handle.

HiValue

[out] The pointer to the variable, in which the high DWORD of the result will be stored. May be set to NULL, if the application does not need these data.

Return values:

If the function succeeds the return value will be the low-order doubleword of the timestamp of the first packet dumped to the CAP file, and if HiValue is non-NULL the function will put the high-order doubleword of this number into the variable pointed to by this parameter.

Measurement units:

Windows NT 4.0/2000/XP/Vistahundreds of nanoseconds since January 1, 1600
Windows 95/98/ME0.8 microseconds since Windows session is started

Description:

Use FAdpGetOpenTime to get the timestamp of the first packet stored in a CAP file. This function may be useful for counting of the time offset for the next packets read from the current CAP file.

See also:HNFileAdapter, FAdpOpenFile