怎么编程重起电脑 win98 ???

解决方案 »

  1.   

    重起不了电脑???c:\windows\rundll32.exe user,restartwindows c:\windows\Rundll32.exe user.exe,exitwindowsexec 重起不了电脑???
      

  2.   

    windows API中应该有这个功能。
    如果实在不行,可以运行一段代码,使用机器死机,让操作员代劳吧!
    :):):):):):):):):):):)
      

  3.   

    ExitWindowsEx函数,加EWX_REBOOT参数,具体的看msdn
      

  4.   

    这样用不行,要怎么用???#include "stdafx.h"
    #include "sys\stat.h"
    #include "stdio.h"
    #include "time.h"
    #include "process.h"
    #include "dos.h"
    #include <windows.h>int main(int argc, char* argv[])
    {
    ExitWindowsEx(EWX_REBOOT, 0); return (0);
    }
      

  5.   

    给分吧!
    http://www.vckbase.com/vckbase/vckbase20/
      

  6.   

    http://www.vckbase.com/vckbase/vckbase20/
    找不到我要的!!!
      

  7.   

    把你的main改称WinMain试试吧,当然参数也要改的
      

  8.   

    ExitWindowsEx()就可做到的,
    http://www2.baidu.com/chains/chains.php?cn=cwwnet1                  欢迎进入http://www2.baidu.com/chains/chains.php?cn=cwwnet1
      

  9.   

    // restartsys.cpp : Defines the entry point for the application.
    //#include "stdafx.h"
    #include "sys\stat.h"
    #include "stdio.h"
    #include "time.h"
    #include "process.h"
    #include "dos.h"
    #include <windows.h>int APIENTRY WinMain(HINSTANCE hInstance,
                         HINSTANCE hPrevInstance,
                         LPSTR     lpCmdLine,
                         int       nCmdShow)
    {
      // TODO: Place code here. // changesys_a.cpp : Defines the entry point for the console application.
    //
    ExitWindowsEx(EWX_REBOOT, 0); return (0);
    }
      

  10.   

    把 main 改成 APIENTRY WinMain