MCPcopy Create free account
hub / github.com/Norbyte/ositools / FindModule

Method FindModule

OsiLoader/Utils.cpp:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool ErrorUtils::FindModule()
91{
92 eocApp_ = GetModuleHandleW(L"EoCApp.exe");
93 if (eocApp_ == NULL) {
94 return false;
95 }
96
97 MODULEINFO moduleInfo;
98 if (!GetModuleInformation(GetCurrentProcess(), eocApp_, &moduleInfo, sizeof(moduleInfo))) {
99 return false;
100 }
101
102 moduleStart_ = (uint8_t const *)moduleInfo.lpBaseOfDll;
103 moduleSize_ = moduleInfo.SizeOfImage;
104 return true;
105}
106
107void ErrorUtils::FindErrorFuncs()
108{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected