How to find out that a user has logged on ...

I have an application running as an NT service. I need get a notification to this app when a user logs on to the system. How do I go about this ? I need to perform certain tasks as soon as a user logs on.

Please do not suggest that I use a timer to do this.:)).
LVL 2
enkay022798Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
Well, the only chance I see is to place an application in the startup folder that notifies the service that a user has logges on (via 'ControlService()'), as otherwise the service will only be notified about logoffs. The McAffee virus scanner for NT uses a similar approach to displays its tray icon  that does nothing but sitting in the tray and communicate with the service
0
enkay022798Author Commented:
Your solution is what we did think about. I just want to wait if anything else comes along. So giving it a day. Else I will accept your answer. Thanks !
0
jkrCommented:
No problem. I'd be interested in a different solution, too <s>  (the only alternative I could think of would be a GINA replacement that notifies the service, but that would be overkill...)
0
jkrCommented:
Well, as I feared - no other opinions...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
enkay022798Author Commented:
As I feared too. Thanks for the suggestion. We decided on just that. The points are yours :)).
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.