c++ / c reboot

本帖最後由 bigrot11 於 2010-10-18 17:38 編輯

如何在C C++上寫出reboot電腦的指示? run as DOS
寫極都唔work..........

i guess you have to search in win32 api
i don't know much, hope google helps
btw, which windows version did you use? you better search method for that particular windows, it should matters.

TOP

easiest way:
system call

TOP

execute "shutdown /r" command

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP