SERIAL_DCD_ON
SERIAL_DCD_OFF
7. TosettheRS-232signalDCDwhenthetransceiverisinDCE
mode,usethefollowingcode:
DWORDl_ByteCount;
DeviceIoControl(
PortHandle,
NISERIAL_SET_DCD,
(LPVOID)NULL,
0,
(LPVOID)NULL,
0,
(LPDWORD)&l_ByteCount,
NULL
);
8. TocleartheRS-232signalDCDwhenthetransceiverisinDCE
mode,usethefollowingcode:
DWORDl_ByteCount;
DeviceIoControl(
PortHandle,
NISERIAL_CLR_DCD,
(LPVOID)NULL,
0,
(LPVOID)NULL,
0,
(LPDWORD)&l_ByteCount,
NULL
);
9. ToretrievethecurrentstateoftheRS-232signalDCDwhenthe
transceiverisinDCEmode,usethefollowingcode: