Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutdown the computer from DOS
Message
 
To
02/02/1999 20:50:58
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00183240
Message ID:
00183565
Views:
22
>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)
Ronald L. Thorp
http://www.Fox-Pros.com
Fox-Pros, Inc.
Office 407-498-0100
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform