Get Process ID from given Thread ID ?

Hi,

as already mentioned I'm looking for a way to get the ProcessID from a given ThreadID.

In other words : I have a thread ID from a process in the system (not my own process) and I need a function to get the associated process ID. I need it inside my program not only for testing.

Can you help me ??

Toni
LVL 1
moosachAsked:
Who is Participating?
 
jhanceConnect With a Mentor Commented:
How are you the the thread id? Usually it's only available inside the current process, which IS the thread's process.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.