gpt4 book ai didi

c# - 关闭windows框C#

转载 作者:可可西里 更新时间:2023-11-01 13:29:49 26 4
gpt4 key购买 nike

不知道有没有人知道怎么用c#命令打开这个框?

enter image description here

提前致谢!

最佳答案

您必须添加对 Shell32.dll 的引用(COM -> "Microsoft Shell Controls And Automation")并使用此代码:

 Shell32.Shell shell = new Shell32.Shell();
shell.ShutdownWindows();

关于c# - 关闭windows框C#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13866423/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com