NdisMReadDmaCounter (NDIS 5.1) 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.
NdisMReadDmaCounter returns the current value of the system DMA controller's counter.
Syntax
ULONG NdisMReadDmaCounter(
_In_ NDIS_HANDLE MiniportDmaHandle
);
Parameters
- MiniportDmaHandle [in]
Specifies the handle returned when the miniport driver called NdisMRegisterDmaChannel during initialization.
Return value
NdisMReadDmaCounter returns the number of bytes remaining in the current DMA transfer on the channel used by the NIC.
Remarks
NIC drivers of devices that use the system DMA controller's autoinitialize mode can call NdisMReadDmaCounter.
Requirements
Target platform |
Universal |
Version |
See NdisMReadDmaCounter. |
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
<= DISPATCH_LEVEL |
See also