Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON SHUTDOWN conditions
Message
De
26/01/2009 00:55:32
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
ON SHUTDOWN conditions
Versions des environnements
OS:
Windows XP SP2
Divers
Thread ID:
01376963
Message ID:
01376963
Vues:
64
How can I determine the condition, which cause an execution of ON SHUTDOWN command ?
I see 3 cases :

1) User clicked an upper right cross on _screen window,
2) User tried to reload or shutdown Windows,
3) Some outer application tried to post PostMessage(hwndnext,WM_CLOSE,0,0) to my application.

In first case I need to ask user, is he really going to close the task and if so - then carefully finish all processes of application and restore initial environment. In other cases I must quickly stop an execution without any questions.
Are there any means to distinguish these 3 cases ?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform