How to hook to another windows to determine new windows was created ?

Hi
I want to write a small app by C# with features:
- It will hook to Windows or specific Windows (like Internet Explorer)
- For Windows Hook (is it System Hooking ?) it'll determine have any new windows was created and raise event: Example (When notepad was opened- Notepad Window was created.It'll detech and raise event)
- Have same thing with specific Windows. Example: It'll determind Yahoo Messenger created new Yahoo Window Chatting (the windows use for chatting).

Thank you
BrendaMcMahonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

alienvoiceCommented:
Ok, so you want to write this program, what exactly are you asking us thou?
0
BrendaMcMahonAuthor Commented:
Yah.
I dunt know how to system hook in C# (in this case is "system hooking").
Would you mind help me a example like above ?
Thank you
0
mannujamCommented:
In normal case you can hook createwindow funtion, but every time so much amount of window are created that you can overload the hookproc and your system can hang. So you have to write a device driver for the same . This is not so straight forward process.
0
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

BrendaMcMahonAuthor Commented:
.. uhm thank you. For wide system hooking looking it'll trouble.
But how about for specific window ? Like yahoo messenger.
I want to catch any window created by specific window ?

Thank you
0
CastorixCommented:
Simply WH_CBT (among all the standard methods...)
0
BrendaMcMahonAuthor Commented:
Would you mind give me a simply sample source code ?
Thax
0
mannujamCommented:
OK, go to this link,
 http://www.codeproject.com/KB/threads/procmon.aspx

There you can find the moniter for process execution.
I have used it and it is working fine.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BrendaMcMahonAuthor Commented:
Almost done with this.
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.