Export (0) Print
Expand All

NDIS_SET_PACKET_TIME_SENT (Windows Embedded CE 6.0)

1/6/2010

This macro sets the TimeSent value in the out-of-band data block associated with a specified packet descriptor.


ULONGLONG NDIS_SET_PACKET_TIME_SENT(
  PNDIS_PACKET _Packet,
  ULONGLONG _TimeSent
);

_Packet

Pointer to a packet descriptor allocated by the caller for receive indications.

_TimeSent

Specifies the system time at which the packet was transmitted over the network from a remote node.

The return value is the _TimeSent value.

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.

The NDIS_SET_PACKET_TIME_SENT macro is defined as follows.

#define NDIS_SET_PACKET_TIME_SENT(_Packet, _TimeSent)       \
    ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) +            \
    (_Packet)->Private.NdisPacketOobOffset))->TimeSent = (_TimeSent)

Headerndis.h
Windows Embedded CEWindows CE .NET 4.0 and later

Community Additions

ADD
Show:
© 2015 Microsoft