64
DSerialCmd
Purpose Use
serial port and then read back the specified number of
response bytes from the port.
Syntax
DWORD DSerialCmd (hdc, wScreenNumber,
Parameter
Type
HDC
UWORD
UWORD
UBYTE FAR *
to write command bytes to the PS/2
DSerialCmd
wnumCmdBytes, lpCmdBuffer, wnumResponseBytes,
lpResponseBuffer, dwTimeout)
DSerialCmd Parameters
Name
hdc
wScreenNumber
wnumCmdBytes
CmdBuffer
DSerialCmd
Description
Handle to the display-
device context.
Target screen number
(zero-based). This deter-
mines which board's
serial port to write to.
Number of bytes to write
to the command buffer.
If this is zero (0), the func-
tion reads the response
bytes without writing any
command bytes.
Buffer that contains the
command bytes that are
written to the port. This
parameter can be NULL
if wnumCmdBytes is
zero (0).
®