Reputation: 11
how do I get class name and HWNDs of a process where only PID is known?
I need to set focus on a particular window of a process.
Upvotes: 1
Views: 1537
Reputation: 24447
There is no way to go directly from PID >> HWND since a PID can own multiple windows. You can however go the other way round.
Upvotes: 6