Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why on shutdown program is not called?
Message
From
03/08/2010 12:10:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01474941
Message ID:
01474992
Views:
40
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
Previous
Reply
Map
View

Click here to load this message in the networking platform