Is it possible to send WM_QUERYENDSESSION messages to a window in a different process?

后端 未结 4 371
太阳男子
太阳男子 2021-01-20 00:16

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

4条回答
  •  伪装坚强ぢ
    2021-01-20 01:03

    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.

提交回复
热议问题