I have a hook function like this
void newThreadCreated(void *ptid) {}
I want to insert this function into child thread's function. The issue is how to pass parent thread id (ptid) to this function. Any concrete solution or thoughts?
Thanks in Advance!