This macro sets the TimeSent value in the out-of-band data block associated with a specified packet descriptor.
Header file: | Ndis.h |
Windows CE versions: | 2.0 and later |
NDIS_SET_PACKET_TIME_SENT( IN PNDIS_PACKET Packet,
IN ULONGLONG TimeSent );
Miniports can use this macro to set this time stamp in the out-of-band data block associated with a packet descriptor that they are about to indicate with the NdisMIndicateReceivePacket function.
All time stamps set in the NDIS_PACKET_OOB_DATA structures associated with packets are expressed in system time units as the number of 100-nanosecond intervals since January 1, 1601.
When a protocol driver’s ProtocolReceivePacket function is called with such an indication, it can use the NDIS_GET_PACKET_TIME_SENT macro to retrieve the TimeSent time stamp, using the Packet pointer that it is given on entry.
If the ProtocolReceive function is called with an indicated packet descriptor for which the underlying driver set the TimeSent time stamp, ProtocolReceive calls the NdisQueryReceiveInformation function to get this time stamp.
A driver that uses this macro runs at IRQL <=DISPATCH_LEVEL.
NdisMIndicateReceivePacket, NDIS_SET_PACKET_TIME_RECEIVED