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
Yes. If you can get the window handle (maybe using FindWindow()), you can send/post any message to it as long as the WPARAM & LPARAM aren't pointers.