mirror of
https://github.com/BeneficialCode/WinArk.git
synced 2026-10-18 13:41:03 +08:00
22 lines
457 B
C++
22 lines
457 B
C++
#pragma once
|
|
|
|
#include "SymbolHandler.h"
|
|
|
|
// µ¥Àý
|
|
class SymbolManager {
|
|
public:
|
|
static SymbolManager& Get();
|
|
SymbolHandler* GetCommon();
|
|
SymbolHandler* GetForProcess(DWORD pid);
|
|
void Term();
|
|
~SymbolManager();
|
|
|
|
std::unique_ptr<SymbolInfo> GetSymbolFromAddress(DWORD pid, DWORD64 address, PDWORD64 offset = nullptr);
|
|
|
|
private:
|
|
|
|
SymbolManager();
|
|
|
|
SymbolHandler _commonSymbols;
|
|
std::unordered_map<DWORD, std::unique_ptr<SymbolHandler>> _procSymbols;
|
|
}; |