Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Shutting down the computer

Shutting down the computer

Shutting down the computer

Does anyone have some code in assembly that will shut down a computer? Im making my computer have a duel boot with dos 6.0 and windows xp. I have all the code done in QBASIC, except for the shutting down the comuter part. I also want it to restart the computer.


RE: Shutting down the computer

Reboot in DOS is:

int 019h ;no parameters

AmkG will probably know win32 calls.

"People who have nothing to say, say it too loud and have little knowledge. It's the quiet ones you need to worry about!"

RE: Shutting down the computer

Well for win32... you need to call a particular API in a particular DLL, whose name I forgot.  You might be able to do a search on win32asmboard.cjb.net (ask only if you can't find it via search...).

There was also a Windows utility on c|net which gave you several options on how to restart your computer... you could download a free version (all 9 megabytes of it) and pay $25 for the full version.  'Course you could always select Start|Shutdown but hey you had 8 shutdown options... come on pay $25 dollars to get more shutdown options... bleah....

As for Int19h... that's incomplete... there are other things that need to be done but unfortunately for me I don't remember them... I once had an example proggy with all possible DOS reboot flavors BUT the HDD it was on got trashed after 15-odd years of abuse.

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close