Compartilhar via


NdisGetPacketFlags

This function returns the flags, if any, set by a protocol driver in a specified packet descriptor.

UINT NdisGetPacketFlags(
IN PNDIS_PACKET Packet );

Parameters

  • Packet
    Pointer to the packet.

Return Values

The value of the flags in the specified packet descriptor indicates success. Returns 0 if the packet has no flag information explicitly set.

Remarks

This function returns information set in the flag packet descriptor that a protocol driver passes down to the underlying NDIS driver, usually with the NdisSend function. These flags can contain protocol-determined information about the send that is not included in the packet data or in the out-of-band block associated with the packet descriptor.

Protocol drivers can set the flags in packets to be sent on any medium that transmits data in an expedited manner. The MiniportSendPackets function of an underlying NIC driver calls this function to retrieve this information. For underlying NIC drivers that do not support multipacket sends, calls to this function are unnecessary because the packet flags value is passed as an input parameter to the MiniportSend function.

A driver that calls this function can run at any IRQL.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Ndis.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

NdisSetPacketFlags

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.