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