어떻게 사용자가 잠겨있어 Windows 암호를 다시 입력하게합니까?
시작 → 클릭 사용자가 C#으로 그렇게하는 방법 LOCK
에 종료 → 클릭 지적 것처럼, 현재 운영 사용자의 액세스를 잠 그려
?
어떻게 사용자가 잠겨있어 Windows 암호를 다시 입력하게합니까?
시작 → 클릭 사용자가 C#으로 그렇게하는 방법 LOCK
에 종료 → 클릭 지적 것처럼, 현재 운영 사용자의 액세스를 잠 그려
?
http://jessn.blogspot.com/2009/05/lock-my-computer-programatically-in-c.html이 문서에서는 가장 잘 말한다 :
하드 경로 등 Windows 시스템 코딩되지 않은 더 나은 디자인 : System.Runtime.InteropServices를 사용
;
[DllImport ("user32.dll")] public static extern void LockWorkStation();
그런 다음 LockWorkStation()을 호출하십시오.
System.Diagnostics.Process.Start("shutdown.exe -l");
it will LOG OFF your computer and now if the account has secure with some password then windows will ask for password otherwise not.
다음 명령 줄을 실행하는 응용 프로그램을 만들 수 있습니다. Dll 가져 오기 관련이 없습니다. http://www.idsecuritysuite.com/blog/how-to-lock-your-computer-using-command-line –
사용자를 인증 하시겠습니까? 어쩌면 관리자일까요? http://stackoverflow.com/questions/3583501/c-net-acquire-administrator-rights – MrFox