Retrieves an operating-system-dependent identifier associated with the thread.
Syntax
HRESULT GetSystemThreadId( DWORD *dwThreadId );
Parameters
- dwThreadId
- [out] Address of an unsigned long integer value that contains the thread identifier.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
The thread identifier does not need to be unique across machines. If other machines on the same network have the same identifier, they will refer to a completely different thread. Therefore, each identifier is unique, but only on the machine that runs the thread.