how to log off the interactive user from a service
Posted on 2001-07-02
I have written a Windows NT service in delphi, which runs as the local SYSTEM account.
This service though, needs to know who the current logged on user is, and under certain circimstances, log off that user.
If I ask for the "CurrentUser" the answer I get is SYSTEM. I need to know who is loggued on as Interactive user (on the console) and again, log off that user.
My sservice was created with Delphi 5 Ent. and runs on Windows 2000 Professional.