Try
EnumWindows and
GetWindowThreadProcessId to find all top-level windows with a process ID that matches the one you're looking for.
More detail in
THIS MSDN article. It is from 2002 but right now I can't recall anything new from Vista in that area.
If you find this p☺st helpful please remember to hit <Vote As Helpful> √ 1. Whiter than the white is UV bright! 2. Eat your vegetables or you are going to turn in to blobs of lazy fat! 3. Fruits won't cut it 4 wheel drive with levers to lock differentials
was a hack. Always pass your objects as pointers or references and remember to clean ALL the keys from registry when you do uninstall.