■ Process 클래스 : 윈도우 락 스크린 실행하기

----------------------------------------------------------------------------------------------------

using System.Diagnostics;

 

Process process = new Process( );

 

process.StartInfo.FileName         = "rundll32.exe";

process.StartInfo.WorkingDirectory = @"C:\Windows\System32\";

process.StartInfo.WindowStyle      = ProcessWindowStyle.Hidden;

process.StartInfo.Arguments        = "user32.dll, LockWorkStation";

process.Start();

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요