跳过“正在保存设置”界面的关机过程,如同“Ctrl+重新启动”实现快速重启系统,如何实现?(100分)

  • 主题发起人 主题发起人 mywuti
  • 开始时间 开始时间
M

mywuti

Unregistered / Unconfirmed
GUEST, unregistred user!
如何实现如下面一样能快速重启<br>Ctrl+Alt+Del -&gt; 关机 -&gt; Ctrl+重新启动
 
说清楚点啊
 
给分吧[:D]<br>type<br> &nbsp;_SHUTDOWN_ACTION = (<br> &nbsp; &nbsp;ShutdownNoReboot,<br> &nbsp; &nbsp;ShutdownReboot,<br> &nbsp; &nbsp;ShutdownPowerOff);<br> &nbsp;SHUTDOWN_ACTION = _SHUTDOWN_ACTION;<br> &nbsp;TShutdownAction = SHUTDOWN_ACTION;<br><br>function &nbsp;NtShutdownSystem(<br> &nbsp; &nbsp;Action : SHUTDOWN_ACTION<br> &nbsp;): NTSTATUS; stdcall;
 
应该要手动声明吧,<br><br><br>type<br> &nbsp;ShutdownAction=(SHUTDOWN=1,RESTART=2,POWEROFF=3);<br><br>function NtShutdownSystem(Action:ShutdownAction): BOOL; stdcall; external 'ntdll.dll' name 'NtShutdownSystem';
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部