OK, so I'm not confused, you are working thread IDs and not process IDs. I think I'd be checking the thread APIs starting with:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684847(v=vs.85).aspx#thread_functions
If you can, reveail what you are trying to do to that thread.