Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VDMAD_Copy_From_Buffer
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vdmad.inc
 
VxDcall VDMAD_Copy_From_Buffer
 
The VDMAD_Copy_From_Buffer service allows another device to copy data from
the VDMAD buffer to the actual DMA region associated with the buffer. This
service is called after the VDMAD_Request_Buffer service, after a memory
write transfer and before the VDMAD_Release_Buffer service.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
EBX        Specifies the buffer identifier.
 
ESI        Specifies the region linear.
 
EDI        Specifies the offset within the buffer to the start of copying.
 
ECX        Specifies the size of the buffer.
 
Return Value
 
The carry flag is clear if the data is copied from buffer into DMA region.
Otherwise, the carry flag is set and the AL register contains one of the
following error values:
 
Value  Meaning
────────────────────────────────────────────────────────────────────────────
0Ah    DMA_Invalid_Buffer: invalid buffer id supplied
 
0Bh    DMA_Copy_Out_Range: (ESI + ECX) is greater than buffer size
 
Uses
 
EAX, Flags
 
                                      ♦