Lock Workstation

  • Thread starter Thread starter john pryor
  • Start date Start date
J

john pryor

Guest
I need to lock my work station from a windows service. I've read the docs that say I can't do it but I'm wondering is there a work around? I'm already using this code:

System.Diagnostics.Process.Start(@"C:\WINDOWS\system32\Rundll32.exe", "User32.dll,LockWorkStation");

This works in debug out of a windows service, but in a service it does not work.


John Pryor

Continue reading...
 
Back
Top