谢谢!

解决方案 »

  1.   

    用下面这个函数
    HANDLE OpenThread(
      DWORD dwDesiredAccess,  // 访问权限
      BOOL bInheritHandle,    // 句柄是否可以继承
      DWORD dwThreadId        // 线程ID
    );
      

  2.   

    能不能介绍一下HANDLE OpenThread(
      DWORD dwDesiredAccess,  // 访问权限
      BOOL bInheritHandle,    // 句柄是否可以继承
      DWORD dwThreadId        // 线程ID
    );函数中dwDesiredAccess的参数设置啊?
      

  3.   

    Value Meaning SYNCHRONIZE 
       Enables the use of the thread handle in any of the wait functions. THREAD_ALL_ACCESS All 
       possible access rights for a thread object. THREAD_DIRECT_IMPERSONATION
       Required for a server thread that impersonates a client. THREAD_GET_CONTEXT
       Required to read the context of a thread using GetThreadContext. THREAD_IMPERSONATE
       Required to use a thread's security information directly without calling it by 
    using a communication mechanism that provides impersonation services. THREAD_QUERY_INFORMATION 
      Required to read certain information from the thread object, such as the exit code (see GetExitCodeThread). THREAD_SET_CONTEXT 
        Required to write the context of a thread using SetThreadContext. THREAD_SET_INFORMATION 
        Required to set certain information in the thread object. THREAD_SET_THREAD_TOKEN 
        Required to set the impersonation token for a thread using SetTokenInformation. THREAD_SUSPEND_RESUME 
       Required to suspend or resume a thread (see SuspendThread and ResumeThread). THREAD_TERMINATE 
       Required to terminate a thread using TerminateThread.