mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Check if GetThreadDescription() is supported.
This functionality is available since Win 10 1607.
This commit is contained in:
parent
402d749d13
commit
a6c6943a6c
@ -485,6 +485,8 @@ void SysTraceSendExternalName( uint64_t thread )
|
||||
hnd = OpenThread( THREAD_QUERY_LIMITED_INFORMATION, FALSE, DWORD( thread ) );
|
||||
}
|
||||
if( hnd != 0 )
|
||||
{
|
||||
if( _GetThreadDescription )
|
||||
{
|
||||
PWSTR tmp;
|
||||
_GetThreadDescription( hnd, &tmp );
|
||||
@ -498,6 +500,7 @@ void SysTraceSendExternalName( uint64_t thread )
|
||||
threadSent = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
const auto pid = GetProcessIdOfThread( hnd );
|
||||
if( !threadSent && NtQueryInformationThread && _EnumProcessModules && _GetModuleInformation && _GetModuleBaseNameA )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user