02-25-2008 08:02 AM
02-25-2008 08:18 AM
I believe Application Close event only fires if someone presses the "X" on the upper right to close the window. Not sure how to grab an event on Widows closing the application.
02-25-2008 08:29 AM - edited 02-25-2008 08:31 AM
02-25-2008 08:32 AM
I was also thinking can you register for a win32 event to capture the shut down? I don't know how to implement but may also be an option. Let us know how it goes.
02-25-2008 08:40 AM
02-25-2008 08:47 AM
02-25-2008 09:02 AM
02-25-2008 09:20 AM
02-25-2008 09:26 AM
02-25-2008 09:31 AM - edited 02-25-2008 09:33 AM
Hi Vincent,
you can use the function "GetMessageA" from the User32.dll to get specific Messages in your application. The 0x11 Message is the QueryEndSession Message which will be send if windows will shut down or reboot.
Hope this helps.
Mike