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.... You can find out and post it
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics;
namespace Sajid.LockComputer { class Program { static void Main(string[] args) { Process.Start(@"C:\WINDOWS\system32\rundll32.exe", "user32.dll,LockWorkStation") ; } } }
|
No responses found. Be the first to respond and make money from revenue sharing program.
|