SetBreakExW

Enables/disables line break emulation in virtual serial ports.

BOOL SetBreakExW(
  	WCHAR* Port, WCHAR * UserSession, bool bBreak
);

Parameters:

  • PortA null-terminated string that defines one of the two port names in a pair.
  • UserSessionUser session’s ID in which the pair of virtual ports was created.
    If UserSession is empty, a ports pair was created globally and is visible to all users.To know how to get the user session’s ID, refer to GetUserSession.
  • bBreakA boolean variable should be TRUE if you want to emulate connection break and FALSE if you want to re-establish it.

Return values:

Returns TRUE if line break emulation was successfully enabled and FALSE otherwise.