Originally posted by Sc0rp

But in this method i can't hook into windows which are not in my app.

So, that's you're style. I don't know how to get other program's hWnds, but you may be able to get the window by it's classname, and use that hwnd. Are you trying to do this for winamp? If you are, I can send you my ddraw shell example for Winamp (you can use it to make Visualizers, no royalties or anything). BTW, I'm out for lunch now