include vdmad.inc
mov ebx, BufferID
mov esi, OFFSET32 Region
mov edi, OFFSET32 BufferOffset
mov ecx, BufferSize
VxDcall VDMAD_Copy_To_Buffer
jc ErrorHandler
Allows another device to copy data into the VDMAD buffer from the DMA region associated with that buffer. Uses EAX, flags
0Ah | DMA_Invalid_Buffer: Invalid buffer ID supplied. |
0Bh | DMA_Copy_Out_Range: (ESI + ECX) is greater than buffer size. |
This service is called after the VDMAD_Request_Buffer service, and before starting a memory-read transfer.