Windowsのシャットダウンダイアログを経由するシャットダウン
AxImp.exe C:\WINNT\system32\shell32.dll
csc shutdown.cs /r:Shell32.dll
shutdown.cs
public class shutdown { public static void Main(string[] args){ (new Shell32.ShellClass()).ShutdownWindows(); } }
AxImp.exe C:\WINNT\system32\shell32.dll
csc shutdown.cs /r:Shell32.dll
shutdown.cs
public class shutdown { public static void Main(string[] args){ (new Shell32.ShellClass()).ShutdownWindows(); } }