Could u please be more specefic?Quote:
Originally Posted by sand_man
I think he's trying to be funny :D That bit of assembly code will probably cause a 16-bit MS-DOS program to crash the computer because there is no such address. However, it won't compile with an MS-Windows compiler.Quote:
Originally Posted by pritin
Nevermind me. I was trying to be funny. I will stop now because it is obvious that I am not :)Quote:
The difference between a warm boot and a cold boot, is the value loaded into
the address 0040:0072. If the value is any number except 1234, a jump to
address FFFF:0000 performs a cold boot. If the value is 1234 then a jump to
address FFFF:0000 performs a warm boot. The value 1234 is the one that
COMMAND.COM stores in that address when it processes the [CTRL]-[ALT]-[DEL]
key stroke combination.
: really confused too:
Anyway, I wanted to ask, is there a way to make the user's comp hibernate too...? i dont really need this, but just for knowledge...
I have a feeling that nvoight's msdn link isn't too far from what you're looking for. MSDN is a good resource for this kind of thing - so just navigate through some of the links and see what you can find. If you want to search MSDN, the best way if to just use Google and add "msdn" to your search query.
The problem now, is that
Gives me 3 errors..Code:
system ("SHUTDOWN -s -t 30 -c"Shutting down" ");
Using dev cpp
What am i doing wrong?
Just use system("shutdown -s -tt 01"); and be done with it.
Ok this thread is starting to get annoying. (The moderators haven’t actually mentioned anything about not releasing the code, or the dangers of using it) so I’m just going to give you the solution anyway.
This code can be found on Microsoft’s homepage, as briefly mentioned before it’s better than using “system”.
There is also an example of this shown here:-www.thecodeproject.com
Thanks buddy. That oughta do the job!