Getting Real Handle to Thread/Process Requires Two CallsLast reviewed: November 2, 1995Article ID: Q90470 |
The information in this article applies to:
The API GetCurrentThread() returns a pseudo-handle rather than the real handle to the thread. To get the real handle to the thread, you need to use DuplicateHandle() using the pseudo-handle that is returned from GetCurrentThread(). In addition, to get the real handle to a process, you need to call DuplicateHandle() after calling GetCurrentProcess().
|
Additional reference words: 3.10 3.50 4.00 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |