| 34 | |
| 35 | |
| 36 | std::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 | |
| 48 | std::wstring SymParser::GetSymTypeName(ULONG Index, OPTIONAL OUT PUINT64 BaseTypeSize, OPTIONAL OUT PBOOL Status) { |
| 49 | if (!Index) return L""; |
nothing calls this directly
no outgoing calls
no test coverage detected