Why can't I retrieve info ?

I createprocess a process in my process and call findwindow() to get a specified window handle but I fail.
The logic behind is very simple but why I fail?
i get nuts lunatic ,plz help asap.
Who is Participating?
WynConnect With a Mentor Commented:
Add WaitForInputIdle() before FindWindow().
Can you post here snippet of you code?
And use GetLastError() for detect the
reason of error.
bb_2000Author Commented:
Thank you.
I really appreciate your comment.It works !
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.