using System.Runtime.InteropServices; public static extern int ExitEx(int operationFlag, int operationReason); [DllImport("user32.dll")] for ShutDown ExitEx(1, 0); For Restart: ExitEx(2, 0);
Regards, Lakshmi Naraayanan.S http://dotnettechrocks.blogspot.in/ http://abaprocker.blogspot.com/
Login to post response