Compartir a través de


NdisPacketSize 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.

NdisPacketSize returns the size, in bytes, of packet descriptors that are allocated with the given size that is reserved for protocols.

Syntax

UINT NdisPacketSize(
  _In_ UINT ProtocolReservedSize
);

Parameters

  • ProtocolReservedSize [in]
    Specifies the size, in bytes, of packet descriptors ( NDIS_PACKET) that the caller reserves for protocols.

Return value

Returns the size, in bytes, of packet descriptors (NDIS_PACKET) that are allocated with the size specified in ProtocolReservedSize.

Requirements

Target platform

Universal

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)

Library

Ndis.lib

IRQL

<= DISPATCH_LEVEL

See also

NDIS_PACKET

 

 

Send comments about this topic to Microsoft