This is what the Delphi*TThread.NameThreadForDebugging is based on: // // Usage: SetThreadName (-1, "MainThread"); // #include const DWORD MS_VC_EXCEPTION=0x406D1388; #pragma pack(push,8) typedef struct tagTHREADNAME_INFO { DWORD dwType; // Must be 0x1000. LPCSTR szName; // ...
More...