Hi,
I have a process ID, what I want to do is return the class. If it is the desired class then return the caption, how do I do that?
C Visual Studio 2008, XP SP3
Hi,
I have a process ID, what I want to do is return the class. If it is the desired class then return the caption, how do I do that?
C Visual Studio 2008, XP SP3
Use EnumWindows with GetWindowThreadProcessID to find the HWND with the matching process ID that you're looking for.
Once you have the HWND you can use GetClassName to get the class name.
Once you have the HWND with the class you want you can use either:
Read Raymond Chen's post here on the differences.