WinEventHook Application’s EVENT_OBJECT_DESTROY Case called even though application is not destroyed?

  destroy, events, hook, window, windows

I have a handle to a window, when I bring the window to the front by any means, via SwithToThisWindow() or ShowWindow() or any other win32 api that brings the window to the front (even just clicking on the window myself) the global win event hook I’m using to monitor window events fires the "EVENT_OBJECT_DESTROY" case but the window still exists, it isn’t destroyed, it isn’t even hiding, all I’ve done is switch windows.

The test application in this case is Steam which is of class type "vguiPopupWindow" style "TopLevelWindow", just trying to understand WinEventHooks better. Why is destroyed being called?

Source: Windows Questions

LEAVE A COMMENT