Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to exit Windows 95 from VF3.0 application
Message
 
To
09/09/1996 21:47:56
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00007503
Message ID:
00008149
Views:
33
>Hi,
> In the visual foxpro 3.0b,Is there any way to exit Windows 95 directly?

The easiest way to exit windows directly from VFP is to use the Windows API functions.

This code will do it!

* Exit and Restart Windows
* lnExitType=66 && 66=exit and restart 67=exit for good
DECLARE INTEGER ExitWindowsEx IN user32 INTEGER, INTEGER
lnExitWindows=ExitWindowsEx(lnExitType,0)

This will trigger windows to close any opened applications, but you should have already done all you tblupdates/tblreverts before getting this far.
Previous
Reply
Map
View

Click here to load this message in the networking platform