Re: How can I get the window handle from process id?
Originally Posted by Igor Vartanov
(as well as FindWindow may do with the same success, by the way)
FindWindow does not always work; there are many reasons for why it would not work. Which proves that the logic is faulty if the logic states that something should never be used if it has any potential for failure.