Global array: HANDLE ThreadArray[5];
In main thread: ThreadArray=::CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) ChildThread,&iArray,0,NULL)//just want to save the Handle of ChildThread.
In other thread:£º::SuspendThread(ThreadArray);//error
I use "::GetLasterror()" to get what the error is.It show me "5".So it is "access deny".But all of the threads is in the same process.I don't konw why??Who can help me??
In main thread: ThreadArray=::CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) ChildThread,&iArray,0,NULL)//just want to save the Handle of ChildThread.
In other thread:£º::SuspendThread(ThreadArray);//error
I use "::GetLasterror()" to get what the error is.It show me "5".So it is "access deny".But all of the threads is in the same process.I don't konw why??Who can help me??