Creates a pair of virtual COM ports with the predefined names in the defined user session.
BOOL CreatePairExW( WCHAR *Port1, WCHAR *Port2, WCHAR * UserSession );
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.
User session's ID in which the pair of virtual ports with the predefined names will be created.
If UserSession is empty, a ports pair will be created globally and will be visible to all users.To know how to get the user session's ID, refer to GetUserSession.