नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Gets the system thread identifier.
Syntax
Parameters
pdwThreadId
[out] Returns the system thread identifier.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Remarks
A thread ID is used to identify a thread among all other threads in a process.
Example
The following example shows how to implement this method for a simple CProgram object that implements the IDebugThread2 interface.
HRESULT CProgram::GetThreadId(DWORD* pdwThreadId) {
*pdwThreadId = GetCurrentThreadId();
return NOERROR;
}