Windows service

W

Wally

Hi all.
I've wrote a windows service in VB.NET that starts antomatically on power
on. It works fine.
Now I need that my service know when a user log on Windows. Is this
possible? In which way?
Thanks in advance.
VV
 
J

Jay B. Harlow [MVP - Outlook]

Wally,
The "simplest" way may be to create a second program that you put in the
Startup Reg Key of all users that uses
System.ServiceProcess.ServiceController.ExecuteCommand to inform the service
that some one logged in.

If you need the user name, then I would consider using .NET Remoting between
the startup client & the service.


You may want to also ask this "down the hall" in one of the Win32 programmer
newsgroups to see what the Win32 API itself has to offer. One of:

microsoft.public.win32.programmer.*


Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top