Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to exit Windows 95 from VF3.0 application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00007503
Message ID:
00008149
Vues:
32
>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
Fil
Voir

Click here to load this message in the networking platform