CreatePairExW

Creates a pair of virtual ports with the predefined names in the defined user session.

BOOL CreatePairExW(
      WCHAR *Port1, WCHAR *Port2, WCHAR * UserSession
);

Parameters:

  • 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.

  • UserSession

    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.