Using toolHelp32 API get process id by exe file name, Then how could I get all handles of the windows belong this Process?

I dont want to use FindWindow/FindWindowEx, it seems window text always is variable.

Thanks

terry
Posted on 2002-02-22 04:42:52 by xqterry
One way you could do that is to enumerate all windows (use EnumWindows) then with every window handle make a call to GetWindowThreadProcessId, check if it's the right process id, log the window handle if it is and ignore it if it's not.
Posted on 2002-02-22 19:23:45 by Soul~Drudge
:)

I used the way as you talk about.
thanks anyway

Terry
Posted on 2002-02-23 09:15:11 by xqterry