문제

I'm trying to track a certain applications behaviour, I've grabbed the visible thread that draws the Window, having that thread is there any way to determine the process it belongs to?

도움이 되었습니까?

해결책

You can use GetProcessIdOfThread api for newer versions of windows.

For older versions you have to find it manually using the ToolHelp library functions Thread32First/Thread32Next searching for the threadid and getting the process id from the THREADENTRY32 structure.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top