there is no such a thing as a REBOOT COMMAND IN C.
The reboot process is an OPERATNG SYSTEM very high PRIVILEGE FUNCTION
Otherwise any virus could do use it .So it dependend what OPERATING SYSTEM you are talking about .Then if you have the SDK ( toolbox) for that OS .For windows is a very expensive thing! .Then you need to READ A LOT of documentation.
Another solution is use an external port to control the power of the PC !
is a poor's man solution!
Windows SDK is basically available for free from MS since many years and included in some way with most today's programming enviroments, e.g. VisualStudio, Borland C-Builder, OpenWatcom, whatever. Windows has an InitiateSystemShutdown API function, that provides the said functionality. Sysinternals also has a simple console application, psshutdown, that allows shutdown and reboot of local or remote Windows PCs without programming - with sufficient user rights.
but as i am saying.. it. some different way, i am talking about the situation when we install a new software, it asks us to reboot the pc sometime.. and by clicking on a button we can reboot the PC .
correct .?
i ask .. whts the code behind that button if the application is written in c++..? or or vb .?
i hope this clears my question once again for my friends.