• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

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.:)).
0
enkay022798
Asked:
enkay022798
  • 3
  • 2
1 Solution
 
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
 
enkay022798Author Commented:
As I feared too. Thanks for the suggestion. We decided on just that. The points are yours :)).
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now