I know that when I try to shutdown the OS, it sends the WM_QUERYENDSESSION message... and I need to return TRUE when the OS does that.
like:
Code:case WM_QUERYENDSESSION: return(TRUE);
But the question is, if I want to make savings when the OS is shuting down, I will do it at the WM_QUERYENDSESSION message, or the WM_ENDSESSION message?
Thanks