Does anyone know how to shut down the computer

I am looking for any programming code to shut down the pc from the dos command...


Comments

  • : I am looking for any programming code to shut down the pc from the dos command...

    :



    I take it you mean shut the computer down from a dos prompt within Win95/Win98?

    If so, check out the reboot program on the link below.



    Matthew Gross

    Acheron@Hotmail.com


    URL:http://www.geocities.com/acheronx/tpw.htm

  • : I am looking for any programming code to shut down the pc from the dos command...

    :



    under C language write this:



    unsigned long biospointer=0x00400072;



    *((unsigned int*)biospointer) = 0xABCD;



    if this will not work fine, make me not it. in this case i send to you my reboot code. In some case read the interrupt list manual, and review

    the bios area 0x040 specifications.... bye.




  • : I am looking for any programming code to shut down the pc from the dos command...

    :



    under C language write this:



    unsigned long biospointer=0x00400072;



    *((unsigned int*)biospointer) = 0xABCD;



    AND JUMP TO 0xFFFF0000 direction.



    if this will not work fine, make me not it. in this case i send to you my reboot code. In some case read the interrupt list manual, and review

    the bios area 0x040 specifications.... bye.




  • first of all, DOS don't shutdown !!

    if you're talking about turning the power off then someone is correct!

    you need to do a direct bios call.

    you can start by tracing API function called ExitWindowsEx.

    read the API from the end, turning off is the last thing it does.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories