MCPcopy Create free account
hub / github.com/beefytech/Beef / TryGetThreadName

Method TryGetThreadName

IDEHelper/WinDebugger.cpp:246–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void WinDebugger::TryGetThreadName(WdThreadInfo* threadInfo)
247{
248 if (threadInfo->mHThread == NULL)
249 return;
250
251 ImportKernel();
252
253 PWSTR wStr = NULL;
254 if (gGetThreadDescription != NULL)
255 {
256 gGetThreadDescription(threadInfo->mHThread, &wStr);
257 if (wStr == NULL)
258 return;
259
260 threadInfo->mName = UTF8Encode(wStr);
261 FilterThreadName(threadInfo->mName);
262 LocalFree(wStr);
263 }
264}
265
266static void CreateFilterName(String& name, DbgType* type)
267{

Callers 1

ThreadProcMethod · 0.80

Calls 2

FilterThreadNameFunction · 0.85
ImportKernelFunction · 0.70

Tested by

no test coverage detected