Notified when other top-level windows open

  • Thread starter Thread starter Sin Jeong-hun
  • Start date Start date
S

Sin Jeong-hun

Is it possible to get notified in my C# application when a top-level
window is opened at another application? By top-level window, I mean
main application windows, dialog boxes, pop up windows, the sliding
notification window of Windows Live Messenger and so on. I need to get
window handles for them. I think I might be able to do it by using
some Win32 API, am I right? But I have no idea yet. Please let me know
any helpful APIs available. Thank you.
 
Sin Jeong-hun,

You might want to look into create a windows message hook for the
system. You should be able to intercept the WM_CREATE windows message and
work from there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top