Mail Archives: djgpp/1998/09/07/19:01:02
Eli Zaretskii wrote:
> > OK, I haven't tried it under CWSDPMI, but under Win95, using "__dpmi_int" is
> > very ... unpleasent. The direct 'int' just quickly closes the box, the
> > "__dpmi_int" locks your machine for 5 seconds, then displays a dialog box
> > which you have to click to close the box.
> You cannot reboot under Windows, so this is probably irrelevant, as the
> person who asked this question wanted to reboot the machine (obviously in
> plain DOS).
I suspect there are some API calls that will allow a program to reboot the
machine. Also, I had a program (years ago) that was 20bytes long and would
reboot a computer. If you just put 0xCD,0x19 as the only 2 bytes in a file,
call it "reboot.com", then it will reboot the machine using a 'quick' boot
(before DOS 7). The 20 byte program I found would do a 'normal' boot under
old DOS and Win31, I lost it before I got Win95, so I don't know if it would
work. I suspect there is a consistant way to reboot a Win95 machine from a
DOS App.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
- Raw text -