How can I delay the machine log off in Windows Service?

  • Thread starter Thread starter nopatch4humancruelty
  • Start date Start date
N

nopatch4humancruelty

Guest
Hi, I've implemented a Windows service using C#. I've implemented the protected override void OnSessionChange(SessionChangeDescription changeDescription) method, handling the reasons: SessionLogOn o SessionLogOff. On the log off, the service must do some operations that require some time interval.

I've already implemented a procedure who delay the machine shutdown.

How can I delay the user machine log off, in order to give to the Windows service additional time to end the operations?



Thank you

Continue reading...
 
Back
Top