G
GTi
Is there any way I can find out if there is any user logged on the
desktop from a service?
desktop from a service?
Nicholas said:GTi,
Yes, but you shouldn't do this. First, there might not be a logged in
user, and second, there may be multiple logged in users.
What you want to do is have your service expose a remoting endpoint, and
then have a program that runs in the client space which connects to the
service and passes/gets the appropriate information.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
GTi said:Is there any way I can find out if there is any user logged on the
desktop from a service?
GTi said:Yeah - after walking round the blocks a while I ended with the same
conclusion.
Since my NT Service application is almost always depended on other
programs that only can run on the users desktop, I will change my
program to do the same as a icon by the clock.
(Note to me self: how do I do that?)
GTi said:Is there any way I can find out if there is any user logged on the
desktop from a service?