Lock Workstation from Windows Service

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

john pryor

Guest
I need to lock my work station programmatically from a c# 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. Any example code would help a lot, thanks.

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


John Pryor

Continue reading...
 
Back
Top