>How could I turn off the computer by software
>in DOS and Windows 95 RESPECTIVELY?
>
>What are the BIOS function number and
>the bytes to call it?
This will work for Win 95
*!* Exit or Exit and Restart Windows
*!* lnExitType
*!* 66=exit and restart
*!* 67=exit for good
LPARAMETER lnExitType
IF TYPE("lnExitType") <> "N"
lnExitType = 66
ENDIF
DECLARE INTEGER ExitWindowsEx IN user32 INTEGER, INTEGER
lnExitWindows=ExitWindowsEx(lnExitType,0)