
22 Nov
2007
22 Nov
'07
6:43 a.m.
It appears that if you pass the GetCurrentThread() pseudo-handle into DuplicateHandle on WinCE, it will trigger an error rather than creating an actual handle for the current thread. Instead, the convention on WinCE appears to involve using the value from GetCurrentThreadId() as the thread handle (apparently this where the ID comes from under the hood on WinCE). Attached is a patch that substitutes this behavior in externally_launched_thread() when building on Windows CE. Thanks, -Dave