// pktmonnpik.h
typedef struct _PKTMON_EVT_STREAM_METADATA {
UINT64 PktGroupId;
UINT16 PktCount;
UINT16 AppearanceCount;
UINT16 DirectionName;
UINT16 PacketType;
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason;
UINT32 DropLocation;
UINT16 ProcNum;
LARGE_INTEGER TimeStamp;
} PKTMON_EVT_STREAM_METADATA;
View the official Windows Driver Kit DDI referenceNo description available.
The PKTMON_EVT_STREAM_METADATA structure contains metadata information used for event streaming.
PktGroupIdGroup Id for packets belonging to the same processor.
PktCountThe number of packets.
AppearanceCountPacket Count belonging to the same Net Buffer List.
DirectionNameEnum value of PKTMON_DIRECTION. Specifies the direction for which the packet was reported.
PacketTypePacket Payload type as PKTMON_PACKET_TYPE.
ComponentIdID of the component that reported the packet.
EdgeIdEdge ID of the component boundary from which packet was reported. An edge represents a pair of entry and exit points.
FilterIdThe filter identifier.
DropReasonPacket drop reason code, defined in the PKTMON_DROP_REASON enum.
DropLocationPacket drop location defined in the PKTMON_DROP_LOCATION enum.
ProcNumProcessor number when the packet was reported.
TimeStampTimestamp when the packet was reported. This is retrieved using KeQuerySystemTime.
For more information, see the PacketMonitorCreateRealtimeStream function.