I'm using the _beginthreadex interface to create some threads. According to the MSDN docs _beginthreadex returns a uintptr_t, but the docs also talk about being able to directly use the handle returned by _beginthreadex in interface calls that expect HANDLE and that the user needs to perform a CloseHandle on the returned handle....

what handle are they talking about? is the uintptr_t returned by _beginthreadex somehow convertible or dereferenceable to a handle? where is the open handle that this function is somehow supposed to return?

can anyone explain?