用SuspendThread()函数 The SuspendThread function suspends the specified thread. DWORD SuspendThread( HANDLE hThread // handle to thread ); Parameters hThread [in] Handle to the thread that is to be suspended. Windows NT/2000 or later: The handle must have THREAD_SUSPEND_RESUME access. For more information, see Thread Security and Access Rights. Return Values If the function succeeds, the return value is the thread's previous suspend count; otherwise, it is -1. To get extended error information, use the GetLastError function.
The SuspendThread function suspends the specified thread. DWORD SuspendThread(
HANDLE hThread // handle to thread
);
Parameters
hThread
[in] Handle to the thread that is to be suspended.
Windows NT/2000 or later: The handle must have THREAD_SUSPEND_RESUME access. For more information, see Thread Security and Access Rights. Return Values
If the function succeeds, the return value is the thread's previous suspend count; otherwise, it is -1. To get extended error information, use the GetLastError function.