NdisBufferLength function
Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
NdisBufferLength returns the length, in bytes, of a given mapped buffer.
Syntax
ULONG NdisBufferLength(
_In_ PNDIS_BUFFER Buffer
);
Parameters
- Buffer [in]
Pointer to the buffer descriptor mapping the buffer.
Return value
NdisBufferLength returns the byte count of the mapped buffer.
Requirements
Target platform |
Universal |
Version |
Not supported for NDIS 6.0 drivers in Windows Vista. Use MmGetMdlByteCount instead. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP. |
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
<= DISPATCH_LEVEL. |
See also
NdisQueryBufferOffset