C++11’s standard library contains which allows threads to be created. However, the Windows api requires an ID for some functions (PostThreadMessa
Use the member function native_handle(). It provides the native thread handle. Then you can call GetThreadId() on it.
GetThreadId()