Packet Sniffer SDK DLL Edition

HNPacket :: Methods :: PktSetTimeStamp

 Previous Next

Sets the time of the packet receiving.

Syntax:

DWORD __stdcall PktSetTimeStamp(HANDLE hPkt, DWORD LowPart, DWORD HiPart);

Parameters:

hPkt

[in] HNPacket object handle.

LowPart

[in] Low 32 bits of the 64-bit packet receiving time.

HiPart

[in] High 32 bits of the 64-bit packet receiving time.

Return values:

This function returns LowPart value.

Description:

Use PktSetTimeStamp to set the packet receiving time. For NT4.0/2000/XP/Vista this value must be equal to the quantity of hundreds of nanoseconds since January 1, 1601, and the quantity of 0.8 microseconds since the current Windows session start for Windows 9x systems.

Using of PktSetTimeStamp makes sense only if you create your own packets and send them for further analysis.

See also:HNPacket, PktGetTimeStamp, PktGetId