您必须添加对Shell32.dll的引用(COM - >"Microsoft Shell Controls And Automation")并使用以下代码:
Shell32.Shell shell = new Shell32.Shell();
shell.ShutdownWindows();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
282 次 |
| 最近记录: |