NdisGetPacketFlags

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

UINT NdisGetPacketFlags(
  PNDIS_PACKET Packet
);

Parameters

  • Packet
    [in] 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.

Requirements

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

See Also

MiniportSend | MiniportSendPackets | NdisSend | NdisSetPacketFlags

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.