次の方法で共有


NDIS_GET_PACKET_TIME_TO_SEND (Windows Embedded CE 6.0)

1/6/2010

This macro returns the TimeToSend member of the out-of-band (OOB) data block associated with a given packet descriptor.

Syntax

ULONGLONG NDIS_GET_PACKET_TIME_TO_SEND(
  PNDIS_PACKET _Packet
);

Parameters

  • _Packet
    Points to a packet descriptor.

Return Value

The return value is the time stamp, if any, set by the protocol driver before passing the _Packet in an array to NdisSendPackets or as a parameter to NdisSend.

Remarks

The MiniportSendPackets or MiniportSend function of an underlying NIC driver might use NDIS_GET_PACKET_TIME_TO_SEND to determine when a given packet should be transmitted over the network.

All time stamps set in the NDIS_PACKET_OOB_DATA blocks associated with packets are expressed in system time units as the number of 100-nanosecond intervals since January 1, 1601.

The NDIS_GET_PACKET_TIME_SENT macro is defined as follows.

#define NDIS_GET_PACKET_TIME_SENT(_Packet)                              \
                        ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) +    \
                        (_Packet)->Private.NdisPacketOobOffset))->TimeSent

Requirements

Header ndis.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Network Driver Macros
MiniportSend
MiniportSendPackets
NdisGetCurrentSystemTime
NDIS_OOB_DATA_FROM_PACKET
NDIS_PACKET_OOB_DATA
NDIS_SET_PACKET_TIME_SENT
NdisSend
NdisSendPackets