The GetCurrentThreadHandle method returns the system handle for the current thread.
- Handle [out]
Receives the current thread's system handle.
This method may also return other error values. See Return Values for more details.
The method was successful.
In kernel-mode debugging, an artificial handle is created because the threads are virtual threads.