Compartilhar via


NDIS_SET_PACKET_TIME_SENT (Windows CE 5.0)

Send Feedback

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);

Parameters

  • _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.

Return Values

The return value is the _TimeSent value.

Remarks

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)

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.

See Also

NdisGetCurrentSystemTime | NDIS_GET_PACKET_TIME_SENT | NdisMIndicateReceivePacket | NdisMSendComplete | NDIS_PACKET_OOB_DATA | NdisSend | ProtocolReceive | ProtocolReceivePacket

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.