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

Function ImportKernel

IDEHelper/WinDebugger.cpp:228–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226static HMODULE gKernelDll = NULL;
227
228static void ImportKernel()
229{
230 if (gKernelDll != NULL)
231 return;
232
233 WCHAR path[MAX_PATH];
234 GetSystemDirectory(path, MAX_PATH);
235 wcscat(path, L"\\kernel32.dll");
236 gKernelDll = GetModuleHandle(path);
237 if (gKernelDll == NULL)
238 {
239 return;
240 }
241
242 gSetThreadDescription = (SetThreadDescription_t)GetProcAddress(gKernelDll, "SetThreadDescription");
243 gGetThreadDescription = (GetThreadDescription_t)GetProcAddress(gKernelDll, "GetThreadDescription");
244}
245
246void WinDebugger::TryGetThreadName(WdThreadInfo* threadInfo)
247{

Callers 1

TryGetThreadNameMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected