// wdm.h
PREAD_DMA_COUNTER PreadDmaCounter;
ULONG PreadDmaCounter(
[in] PDMA_ADAPTER DmaAdapter
)
{...}
View the official Windows Driver Kit DDI reference
No description available.
The ReadDmaCounter routine returns the number of bytes remaining to be transferred during the current subordinate DMA operation.
DmaAdapter
[in]Pointer to the adapter object previously returned by IoGetDmaAdapter representing the system DMA controller channel currently in use.
ReadDmaCounter returns the number of bytes remaining to be transferred in the current DMA operation.
ReadDmaCounter is not a system routine that can be called directly by name. This routine is callable only by pointer from the address returned in a DMA_OPERATIONS structure. Drivers obtain the address of this routine by calling IoGetDmaAdapter.
ReadDmaCounter can be called only by drivers of subordinate DMA devices. Usually, the caller is the driver of a subordinate device that uses a system DMA controller's autoinitialize mode.