Getting a handle to the process's main thread
问题 I have created an additional thread in some small testing app and want to suspend the main thread from this additional thread. The additional thread is created via CreateRemoteThread from an external process. Since SuspendThread needs a HANDLE to the thread which should be suspended, I want to know how to get this HANDLE from code running in my additional thread. 回答1: I don't think there is anything that differentiates the main thread from other threads once the process has started. However,