Drarig29
Drarig29

Reputation: 2245

List windows and detect new windows

I'd like to get a list of all the windows every time a new window is created. For now, I'm using a timer which gets an enumeration of all the windows.

But I'd like to avoid using a timer, and subscribe to any kind of event that is triggered when a window (or a process) is created...

How could I do this?

Upvotes: 0

Views: 420

Answers (1)

user7183242
user7183242

Reputation:

You can monitor all Window creating processes using SetWindowsHookEx with a CBTProc

Upvotes: 1

Related Questions