加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows关机对话框

发布时间:2020-12-14 01:36:12 所属栏目:Windows 来源:网络整理
导读:有没有办法使用任何语言(首选:C/C++,VB,Haskell,批次)打开 Windows XP关闭对话框(带有三个按钮的按钮 – 按下Shift时挂起,关机,重启和休眠)? 我想我可以在我的C程序中加载msgina.dll,但我不知道下一步该做什么 – 在dll中用什么函数来显示对话框? 解决方
有没有办法使用任何语言(首选:C/C++,VB,Haskell,批次)打开 Windows XP关闭对话框(带有三个按钮的按钮 – 按下Shift时挂起,关机,重启和休眠)?

我想我可以在我的C程序中加载msgina.dll,但我不知道下一步该做什么 – 在dll中用什么函数来显示对话框?

解决方法

假设您的语言有办法在Windows上执行基本文件I / O并调用快捷方式,请从 here开始尝试此提示:

  • Create a new txt file somewhere on your system,open it and put in this one line:
    (new ActiveXObject("Shell.Application")).ShutdownWindows();
  • Save and close the file. Change the extension to *.js.
  • You can make a shortcut to that file to make it easy to shut down your system.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读