I would like my VB 2005 app to run on either a PC or a terminal server, if possible. My idea is to check to see if the app is being started on a terminal server by checking all running processes to see if the terminal services process is running. If it is, then check to see how many instances of my app are running and compare it to the maximum number of authorized licenses. If the license count is below the max, then continue to start the app. Otherwise, display a message and terminate. If the terminal services are not being run, then start the app.
I have a fourquestions:
1. Am I barking up the wrong tree? Â Suggestions of an alternative solution would be appreciated. 2. What is the process name for the terminal service? I have been unable to find it on E-E or MSDN Library, most likely due to my poor search techniques. 3 & 4. How could I test the code when I don't have a computer with terminal services? Is there a developer license just for testing?
|