This function retrieves the size of the range from a buffer descriptor and, optionally, its base virtual address.
Header file: | Ndis.h |
Windows CE versions: | 2.0 and later |
VOID NdisQueryBuffer( IN PNDIS_BUFFER Buffer,
OUT PVOID *VirtualAddress OPTIONAL, OUT PUINT Length );
NDIS drivers use this function to retrieve information from the buffer descriptors chained to incoming packets for subsequent transfer operations.
The driver must release any spin lock it is holding before calling this function.
A driver that calls this function runs at IRQL <= DISPATCH_LEVEL.
NdisGetFirstBufferFromPacket, NdisMoveFromMappedMemory, NdisMoveMemory, NdisMoveToMappedMemory, NdisQueryBufferOffset, NdisQueryPacket, NdisRawReadPortBufferUchar, NdisRawReadPortBufferUlong, NdisRawReadPortBufferUshort, NdisRawWritePortBufferUchar, NdisRawWritePortBufferUlong, NdisRawWritePortBufferUshort, NdisReleaseSpinLock, NdisUnchainBufferAtBack, NdisUnchainBufferAtFront