>>Does anyone know how to distinguish between a Windows NT Work Station and a
There's a KB article on how to tell if it's running on Terminal Server....
I put a file on my website that has some TS function calls (Can tell if the client has been disconnected, etc) and it has the source for the "ists.prg" function in the kb as well as a fll version of a better solution.
http://www.jassing.com/Binaries/TSHelp.zip if you're interested.