bobo
bobo

Reputation: 11

Class name, HWNDs from PID

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

Answers (1)

Mike Kwan
Mike Kwan

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

Related Questions