Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why on shutdown program is not called?
Message
De
03/08/2010 12:10:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01474941
Message ID:
01474992
Vues:
39
This message has been marked as a message which has helped to the initial question of the thread.
>>>When I was closing from the Task bar, I didn't get the message - this is the behavior I'd like to simulate - the shutdown initiated by Windows (say, Windows Update).
>>
>>Don't let Windows Update shut down anything
>
>Windows Update is just for example. I want this application to be properly closed if shutdown is initiated outside from the application. For now I need to properly simulate this case. My question is - what is the correct (programmatic) way of the simulation.

I suspect sending it a WM_CLOSE via PostMessage ( http://support.microsoft.com/kb/176391 )

But if closing it via the task manager works - why do you need a program ?
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform