NdisMReadDmaCounter function

The NdisMReadDmaCounter function returns the current value of the system DMA controller's counter.

Syntax


ULONG NdisMReadDmaCounter(
  _In_ NDIS_HANDLE MiniportDmaHandle
);

Parameters

MiniportDmaHandle [in]

The handle returned when the miniport driver called the NdisMRegisterDmaChannel function during initialization.

Return value

NdisMReadDmaCounter returns the number of bytes remaining in the current DMA transfer on the channel used by the NIC.

Remarks

Miniport drivers of devices that use the system DMA controller's auto-initialize mode can call NdisMReadDmaCounter.

Requirements

Target platform

Universal

Version

Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisMReadDmaCounter (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisMReadDmaCounter (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

Irql_Miniport_Driver_Function

See also

NdisMRegisterDmaChannel

 

 

Send comments about this topic to Microsoft

Show: