VDMAD_Request_Buffer

include vdmad.inc

mov esi, OFFSET32 DMA_Region
mov ecx, RegionSize
VxDcall VDMAD_Request_Buffer
jc ErrorHandler
 

Reserves the DMA buffer for a DMA transfer. Uses EAX, EBX, ESI, flags

5 DMA_Buffer_Too_Small: Region request is too large for buffer.
6 DMA_Buffer_In_Use: Buffer already in use.

DMA_Region
Address of the actual DMA region.
RegionSize
Size of the DMA region in bytes.