- How do I obtain the handle of the current thread?
How do I obtain the handle of the current thread?
Use GetCurrentThread() like this:
HANDLE h = GetCurrentThread();
To get the current thread ID do this:
DWORD id = GetCurrentThreadId();
Copyright © 2008-2021, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.