Follwing code is for Lock a Computer. It is nothing but calling of
“ C:\WINDOWS\system32\rundll32.exe user32.dll,LockWorkStation” command. There
are Command for shut down, log off , restart....
using System;
using System.Collections.Generic;
using System.Text;
//using System.linq;
using System.Diagnostics;
namespace r.LockComputer
{
class Program
{
static void Main(string[] args)
{
Process.Start(@"C:\WINDOWS\system32\rundll32.exe", "user32.dll,LockWorkStation");
}
}
}
Friday, September 12, 2008
Subscribe to:
Post Comments (Atom)
1 comment:
Thank you
Post a Comment