DosMonRead
Bindings: C,
MASM
This call waits for and moves a data record from the input buffer of a registered
character device monitor and places it in a private data area where the
monitor can freely access it.
DosMonRead
(BufferI, WaitFlag, DataBuffer, Bytecnt)
BufferI (PBYTE) - input
Address of the monitor
input buffer.
WaitFlag (UCHAR) - input
Valid
values are:
Value
0
The
monitor thread that issues DosMonRead wishes to block until a data record
is available in its input buffer.
1
The
monitor thread that issues DosMonRead does not wish to block when its input
buffer is empty.
DataBuffer (PBYTE) - input
Address of the buffer in the calling process address
space that the data from the monitor's input buffer is read into. The length
of DataBuffer must be the entry value of Bytecnt.
Bytecnt
(PUSHORT) - input/output
Address of the length
of DataBuffer, on entry to DosMonRead. On the return from DosMonRead, Bytecnt
specifies the number of bytes of data moved.
rc
(USHORT) - return