I want to debug a windows C++ application I\'ve written to see why it isn\'t responding to WM_QUERYENDSESSION how I expect it to. Clearly it\'s a little tricky to do this by
The Windows API SendMessage can be used to do this. http://msdn.microsoft.com/en-us/library/ms644950(VS.85).aspx
IS ti possible it's not responding because some other running process has responded with a zero (making the system wait on it.)