Packet Sniffer SDK DLL Edition

HNPacket :: Methods :: PktGetId

 Previous Next

Returns the packet number.

Syntax:

DWORD __stdcall PktGetId(HANDLE hPkt, DWORD *HiValue);

Parameters:

hPkt

[in] HNPacket 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 packet number, 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.

Description:

Since AdpOpenAdapter has been executed successfully, each received packet is numbered.

The packet number is necessary to define the correct sequence of the packets received for the further analysis, because the time value transferred to TimeStamp is divisible by 100 nanoseconds (or 0.8 microseconds for Windows 9x), and several packets may be received in this time interval.

See also:PktGetTimeStamp, PktSetId