Hi, I would like to notified when a user log on WinNT in my NT Service program. Any idea?
Now I can check the process list in a loop to know if a explorer got launched, but there should be another more decent way.
thankx ahead.
Printable View
Hi, I would like to notified when a user log on WinNT in my NT Service program. Any idea?
Now I can check the process list in a loop to know if a explorer got launched, but there should be another more decent way.
thankx ahead.
1. Write a small program and register it under HTML\Software\Microsoft\CurrentVersion\Run. The program will contact the service using some flavor of IPC and then exit. Note, since the program is registered in the HKLM portion of the registry, regular users cannot remove it and therefore they cannot break the notification mechanism.
2. [Windows 2000/XP only] Register a Winlogon notification package. Winlogon notification package is a DLL that is called by Winlogon when certain events occur, in particular, when a user logs on.
3. [Kinda overkill] Write a GINA stub DLL. Intercept WlxLoggedOutSAS call and notify the service about the logon event.
What is a GINA stub dll? Where can I get some useful information about it? Thanks!
A GINA stub is a replacement GINA that passes all requests to the original GINA DLL (which is usually MSGINA.DLL) with little or no processing. There is a sample named GINASTUB in the Platform SDK.
Thank you.