On 03/03/2014 02:41 PM, jfons...@vmware.com wrote:
From: José Fonseca
GetCurrentThread() returns a pseudo-handle (a constant which can only
be used within the calling thread) and not a real handle.
DuplicateHandle will return a real handle, but it will create a new handle
every time we call.
From: José Fonseca
GetCurrentThread() returns a pseudo-handle (a constant which can only
be used within the calling thread) and not a real handle.
DuplicateHandle will return a real handle, but it will create a new handle
every time we call. Calling
DuplicateHandle here means we will leak handl