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
Otherwise, the carry flag is set and the AL register contains one of the following error values:
5 | DMA_Buffer_Too_Small: Region request is too large for buffer. |
6 | DMA_Buffer_In_Use: Buffer already in use. |