MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / GetSymName

Method GetSymName

User-Bridge/API/SymParser.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36std::wstring SymParser::GetSymName(ULONG Index, OPTIONAL OUT PBOOL Status) {
37 LPCWSTR Name = NULL;
38 if (SymGetTypeInfo(hProcess, ModuleBase, Index, TI_GET_SYMNAME, &Name) && Name) {
39 std::wstring SymName = Name;
40 VirtualFree(const_cast<LPWSTR>(Name), 0, MEM_RELEASE);
41 if (Status) *Status = TRUE;
42 return SymName;
43 }
44 if (Status) *Status = FALSE;
45 return L"";
46}
47
48std::wstring SymParser::GetSymTypeName(ULONG Index, OPTIONAL OUT PUINT64 BaseTypeSize, OPTIONAL OUT PBOOL Status) {
49 if (!Index) return L"";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected