DurkD
DurkD

Reputation: 169

Capture FlashWindowEx event of a running process

I have an app that is already running - every now and then it triggers a FlashWindowEx event (the windows 7 icon flashes). I would like to capture this event but I can't seem to find any good info on how.

My thoughts were that it would go like this:

I guess my question is:

Is this possible?

  1. Is there a way to get a list of available events from a running process?
  2. How would I hook into FlashWindowEx?

Upvotes: 3

Views: 1082

Answers (1)

Raymond Chen
Raymond Chen

Reputation: 45172

The WH_SHELL hook notifies you when a window is flashing. According to the documentation:

  • nCode = HSHELL_REDRAW
  • wParam = the handle of the window
  • lParam = TRUE if the window is flashing, FALSE otherwise.

Upvotes: 8

Related Questions