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

Function main

PdbParser/main.cpp:150–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150int main(int argc,char* argv[]) {
151 if (argc < 2) {
152 return 0;
153 }
154 HANDLE hFile = ::CreateFile(argv[1], GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, 0, nullptr);
155 if (hFile == INVALID_HANDLE_VALUE)
156 return 0;
157 HANDLE hMemMap = ::CreateFileMapping(hFile, nullptr, PAGE_READONLY, 0, 0, nullptr);
158 if (!hMemMap)
159 return 0;
160
161 ULONG64 imageBase = (ULONG64)::MapViewOfFile(hMemMap, FILE_MAP_READ, 0, 0, 0);
162 GetSymbol(imageBase);
163
164 system("pause");
165 return 0;
166}

Callers

nothing calls this directly

Calls 1

GetSymbolFunction · 0.85

Tested by

no test coverage detected