Information générale
Catégorie:
Fonctions Windows API
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement