Share via


NDIS_GET_PACKET_CANCEL_ID (Windows CE 5.0)

Send Feedback

This macro returns the cancellation identifier assigned to a packet.

PVOID NDIS_GET_PACKET_CANCEL_ID(PNDIS_PACKET _P);

Parameters

  • _P
    Points to an NDIS_PACKET structure that is the descriptor for a packet.

Return Values

The return value is the cancellation identifier for the specified packet.

Remarks

A protocol or intermediate driver can call NDIS_GET_PACKET_CANCEL_ID to obtain the cancellation identifier for a packet.

A miniport driver calls NDIS_GET_PACKET_CANCEL_ID from its MiniportCancelSendPackets function to obtain cancellation identifiers of packets in its send queue. If a packet's cancellation identifier matches the cancellation identifier passed to the miniport driver's MiniportCancelSendPackets function, the miniport cancels the pending transmission of the packet.

The NDIS_GET_PACKET_CANCEL_ID macro is defined as follows.

#define NDIS_GET_PACKET_CANCEL_ID(_P) NDIS_PER_PACKET_INFO_FROM_PACKET(_P, PacketCancelId)

Requirements

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

See Also

NDIS_PACKET | NdisAllocatePacket | NdisAllocatePacketPool | NdisAllocatePacketPoolEx | NdisCancelSendPackets | NdisGeneratePartialCancelId | MiniportCancelSendPackets | NDIS_SET_PACKET_CANCEL_ID

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.