title: is it safe to cast uintptr_t returned by _beginthread to HANDLE?
body: <p>1)The answer from this post <a href="https://stackoverflow.com/questions/12605966/waitforsingleobject-how-to-get-handle-from-beginthreadex">WaitForSingleObject : how to get handle from _beginthreadex</a> say that it is only legal to cast uintptr_t returned _beginthreadex to type HANDLE, then is it not safe to convert uintptr_t returned _beginthread to type HANDLE? </p>
  
  <p>2)We have cast like below in a 32-bit application and it seems to be working well, will I run into any issues when I convert this app to 64-bit?
  HANDLE thread = (HANDLE)_beginthread(checkThread, 0, &amp;thrVal);</p>
  
  <p>3) Is it worth to convert all the _beginthread calls to _beginthreadex?</p>