General information
Category:
Windows API functions
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only