Apperantly, GetThreadId is a Vista API. How can I get a thread\'s id on pre vista systems?
If you can somehow make the thread in question call GetCurrentThreadId and store it somewhere, you could read the result.