This function resets the valid counts for a given packet.
Header file: | Ndis.h |
Windows CE versions: | 2.0 and later |
VOID NdisRecalculatePacketCounts( IN OUT PNDIS_PACKET Packet );
If a driver explicitly modifies a buffer descriptor chain for a packet descriptor, that driver should call this function with the modified packet. In general, any NDIS driver should avoid modifying buffer descriptor chains that it sets up, and any driver must not modify chains set up by other drivers.
This call resets the valid counts for the packet to FALSE, thus forcing NdisQueryPacket to recalculate the buffer count for the modified packet if it is called subsequently with that packet.
A driver that calls this function can run at any IRQL.
NdisQueryPacket, NdisReinitializePacket