MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetStructSize

Method GetStructSize

PdbParser/SymbolHandler.cpp:245–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245ULONG SymbolHandler::GetStructSize(std::string name) {
246 auto symbol = std::make_unique<SymbolInfo>();
247 auto info = symbol->GetSymbolInfo();
248 SymGetTypeFromName(m_hProcess, _address, name.c_str(), info);
249
250 return info->Size;
251}
252
253IMAGEHLP_MODULE SymbolHandler::GetModuleInfo(DWORD64 address) {
254 IMAGEHLP_MODULE info = { sizeof(info) };

Callers 1

GetKernelStructSizeMethod · 0.80

Calls 1

GetSymbolInfoMethod · 0.45

Tested by

no test coverage detected