1.

Solve : Sampel source codes of restarting system?

Answer»

I would like to have a program which will restart any specified cycles of the system. It would be a GUI one and its INTERFACE is simple:
. an EDIT field to set the restart cycle,
. a field to show the current cycle,
. an edit field to set the time from system start to next restart
. and a button to start it
. a button to stop it.

Is there any kinds of free source I can find to save time? C++/C# are both OK. Quote

I would like to have a program which will restart any specified cycles of the system.

Are you refering to Services in Windows that you WANT to Start, Stop, Cycle (Restart)?I don't understand what you want to do.
What kind of cycle do you want to restart?
Is this a PC or a washing machine?Its' surely a PC.There is simple code to reset the computer. But this is done only in real mode. Old 16 bit DOS programs would do that.
In 32 bit programming you just don't do that. Thee is a prover way to shutdown or restart the system. Anything else is considered a "hack" and is not recommended.
Please read this. Then come BACK and restate your objective.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa373680%28v=vs.85%29.aspx
Hope this is some help.


Discussion

No Comment Found