Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Lock window 7 via window service

$
0
0

Hi,  

I am trying to lock window 7 pc via a window service.  

I have been able to do so from win XP via code  

  Process.Start(@"C:\WINDOWS\system32\rundll32.exe", "user32.dll,LockWorkStation")  

 but when i trying this on Win 7 its not working.  

 Can anyone please provide me how i can lock Win 7 via window service or some alternate solution to it. 

 


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>