NdisMTransferDataComplete

This function returns the packet and completion status for a transfer-data request for which the miniport previously returned NDIS_STATUS_PENDING.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisMTransferDataComplete( IN NDIS_HANDLE MiniportAdapterHandle, IN PNDIS_PACKET Packet,
IN NDIS_STATUS
Status, IN UINT BytesTransferred );

Parameters

MiniportAdapterHandle
Handle originally input to the MiniportInitialize function.
Packet
Pointer to the protocol-allocated packet for which the MiniportTransferData function previously returned NDIS_STATUS_PENDING.
Status
Specifies the final NDIS_STATUS_XXX for the just-completed transfer-data request.
BytesTransferred
Specifies the number of bytes actually transferred to the packet.

Remarks

Whenever MiniportTransferData returns NDIS_STATUS_PENDING for a specified packet, the driver must call this function when it has finished copying the requested data into that packet or must fail the request.

A miniport that indicates receives with NdisMIndicateReceivePacket never calls this function because such a driver always indicates full packets up to higher-level drivers.

Miniports that report their NIC’s media type as NdisMediumArcnet878_2 do not call this function either. NDIS copies all packet data that such a driver indicates.

A driver that calls this function runs at IRQL DISPATCH_LEVEL.

See Also

NdisAllocatePacket, NdisMIndicateReceivePacket, NdisTransferData