DWORD VDDRequestDMA(hVDD, iChannel, Buffer,
length)
IN HANDLE hVDD;
WORD iChannel;
PVOID Buffer;
DWORD length;
VDDRequestDMA requests a DMA transfer from a VDD.
VDDRequestDMA returns the number of bytes transferred. If zero is returned and GetLastError (see the Win32 SDK) is set, then the operation failed. If zero is returned and GetLastError is clear, then the DMA transfer count was zero.
The extended error codes is ERROR_INVALID_ADDRESS which identifies an invalid channel.
VDDs that need to carry out DMA operations but that do not need to deal with all DMA registers should call this function.
Using this function is slower than using VDDQueryDMA and VDDSetDMA.
VDDQueryDMA, VDDSetDMA