1
0

cIsThread threads get a window identification on Win.

This enables tools such as TaskInfo to report the thread name directly.
This commit is contained in:
madmaxoft 2013-08-11 20:22:42 +02:00
parent 4c5590636c
commit ac9224da91

View File

@ -57,7 +57,9 @@ private:
static DWORD_PTR __stdcall thrExecute(LPVOID a_Param)
{
HWND IdentificationWnd = CreateWindow("STATIC", ((cIsThread *)a_Param)->m_ThreadName.c_str(), 0, 0, 0, 0, WS_OVERLAPPED, NULL, NULL, NULL, NULL);
((cIsThread *)a_Param)->Execute();
DestroyWindow(IdentificationWnd);
return 0;
}