DeletePair deletes a pair of virtual serial ports with a given name. As input it takes name of any virtual serial port in a pair. For example, if you want to remove pair named “COM5”-“COM6”, you can pass either “COM5” or “COM6” as argument to DeletePair function.
BOOL DeletePair( char* Port, // name of the virtual serial port );
- Port : A null-terminated string that defines one of the two port names in a pair you want to delete.
Return values : DeletePair returns TRUE if virtual serial pair was successfully deleted and FALSE otherwise