次の方法で共有


NdisQueryPacketLength function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

NdisQueryPacketLength returns the number of bytes of data that are specified by the buffer descriptors that are chained to a given packet.

Syntax

VOID NdisQueryPacketLength(
  _In_  PNDIS_PACKET Packet,
  _Out_ PUINT        TotalPacketLength
);

Parameters

  • Packet [in]
    Pointer to an NDIS_PACKET structure that is the descriptor for a packet.

  • TotalPacketLength [out]
    Pointer to a caller-supplied variable that receives the number of bytes of data in the list of buffers that are described by the NDIS_BUFFER structures that are chained to the NDIS_PACKET at Packet.

Return value

None

Requirements

Target platform

Desktop

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

NDIS_PACKET

 

 

Send comments about this topic to Microsoft