很多时候,我们可能需要执行关闭计算机或重新启动计算机的操作,但在 winnt 内核的操作系统中,我们不能只调用简单的 api 函数来完成这样的操作。这并不是一个复杂的问题,却有时候会让人“为难”,如果是这样,现在解决这个问题的办法来了。
***************************************************************************
具体使用示例:
注销当前用户 => exitwin32sys(ewx_force or ewx_logoff);
重新启动计算机 => exitwin32sys(ewx_force or ewx_reboot);
关闭计算机 => exitwin32sys(ewx_force or ewx_poweroff);
***************************************************************************
具体代码:
uses function getsystypes: boolean; // & 获取操作系统类型 & implementation function getsystypes: boolean; |
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器