Hi, i need a way to keep track of every time a new window is opened, and then get the name of it. I can do this using enumwindows in a loop, but i was hoping there might be another way. Thanks.
Hi, i need a way to keep track of every time a new window is opened, and then get the name of it. I can do this using enumwindows in a loop, but i was hoping there might be another way. Thanks.
Creating a global hook with the WH_SHELL parameter will let you catch any creation of a new window. I'm not sure if it will work for all processes though, since a program doesn't have to create a window to run.
Getting notifications of new process is hard work. I did it once - hooked all processes' CreateProcessA and CreateProcessW. You might not want to get that hackish.
Last edited by maxorator; 08-12-2007 at 12:22 AM.
"The Internet treats censorship as damage and routes around it." - John Gilmore