SetDCD Method

The SetDCD method sets or clears DCD (carrier detect) signal on virtual serial port.

BOOL SetDCD(
  	BOOL On 	// Set or clear DCD signal
);

Parameters:

  • On [in] : Determines setting or clearance DCD signal of a virtual serial port. This parameter can be any of the following values:
    Value Meaning
    TRUE Set the DCD signal
    FALSE Clear the DCD signal

Return Values : If the function succeeds, the return value is TRUE. If the DCD signal was not set/cleared the return value is FALSE.

Note: this method works only when DCD signal is not connected to DSR. To resolve this problem, please, refer to SetWiring method section.