You do not need to track the handle of a thread created with the
CreateThread Function (Windows)[
^]
API: you need to do it only if you have to get the
exit code of that thread.
Then you can simply create a new thread from your
C++ code, and call
CloseHandle
on the returned
handle immediately (doing this doesn't abort the newly created thread).