Check here
http://www.workthin.com/tsprogramming.ht
http://msdn.microsoft.com/library/de...pplications.as
Patrick Rous
Microsoft MVP - Terminal Serve
http://www.workthin.co
----- Joe G. wrote: ----
We are working with a daemon-like Win2K/XP application that use
GetServByName() to get the TCP/IP port to listen on. We would like t
get it to work with windows terminal services such that if multipl
terminal sessions are opened, each could have an instance of thi
application running (on the same target machine, of course). In orde
to make this possible, each instance would have to listen on
different port
Now, since there is a single common services file located i
\WINDOWS\system32\drivers\etc, it makes it difficult to have eac
instance resolve into different port numbers (the service name is no
configurable)
Is there some way to trick the application to pick up different por
numbers? For example, if it was possible to change the location o
the services file to a unique directory for each terminal service
user, it would solve the problem. Or, if it was somehow possible t
intercept the GetServByName call... You get the idea
Any thoughts
--Joe G