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 CreatePairW( WCHAR* Port1, WCHAR* Port2 );
A null-terminated string that defines the name of the first port in a pair
A null-terminated string that defines the name of the second port in a pair
Returns TRUE if virtual serial pair was created successfully and FALSE otherwise.