CreatePair creates a pair of virtual serial ports with given names. It accepts two null-terminated strings determining which ports should be created as input. For example, "COM5" and "COM6".
BOOL CreatePair( char* Port1, // name of the virtual serial port char* Port2 // name of the virtual serial port );
- Port1 : A null-terminated string that defines the name of the first port in a pair
- Port2 : A null-terminated string that defines the name of the second port in a pair
Return values : CreatePair returns TRUE if virtual serial pair was created successfully and FALSE otherwise.