Talking about curiousity ... have you noticed if this happens with an application of yours as well ? Do your applications prevent Windows from shutting down as well or it is just me ?
I swear I'm an almost good guy almost all the time ... why me, why ?
>Hi Ivan,
>
>You may want to look into this thread
Re: API Function to detect and close a program? Thread #
68236 Message #
68400, though it doesn't provide an answer, just some ideas for thought. I'm continuing to research the problem meantime, because you raised my curiousity... < g >
>
>>Thanks Nadya, you've already been too kind !!!
>>
>>My framework isn't a problem, on the contrary, it's the best tool I've ever worked with.
>>I will follow your idea and see how to get the information on who is the murderer.
>>
>>Thanks a lot !!!
>>
>>Ivan
>>
>>
>>>>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 ?
>>>>
>>>That's the hardest part, I think :) I haven't researched this problem yet, though. The simple (but may be not since you're in the framework) way would be to know, when a USER closes the application and assume, that all other cases are caused by Windows Shutdown.
>>>
>>>That's the first idea which comes to mind, see, if you can work from it, otherwise I'll run a research on the problem...
Ivan