Windows terminal services

"Thomas Smith" <[email protected]> Wed, 31 May 2006 14:52:17 -0400
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <011b01c684e3$5700ca30$8800000a@tomsmith>
In a Windows terminal services environment, the WTK.exe sets each user's
communication port automatically (in sequence)-- 6400, 6401, 6402.

 

How do I determine the port number assigned programmatically-- say from
Visual C/C++; or is there already a more automatic way (like the old @FGL)
mechanism to set the $FGLSERVER environment variable on the Unix side.

 

I am not user rlogin.