I see, Nadya ... it's a good idea, I've even run into "Shutting down Windows from inside VFP app" while trying to find an answer around here.
One little question, if you don't mind ... is there a way to know if the app shutdown was caused by Windows shutdown ?
>>Hi Hugo.
>>
>>Yes, I've got the Shutdown event, it's in the framework I use, which is Codemine V7. Codemine takes care of closing forms and taking care of all stuff.
>>When Windows starts its shutdown procedure, my application does shutdown properly, but then by some reason Windows doesn't.
>>
>>I just wish it would die peacefully ...
>>
>>Thanks for your attention.
>>
>>Ivan
>>
>>
>>
>Ivan,
>
>I see the problem. Well, if it doesn't want to behave, you can force it. In other words, if it's easy to determine, that application closing was caused by Windows Shutdown, you can close Windows yourself. The code should be here in API section.
Ivan