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

Method FindEoCApp

OsiInterface/DataLibrariesEoCApp.cpp:10–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace osidbg
9{
10 bool LibraryManager::FindEoCApp(uint8_t const * & start, size_t & size)
11 {
12 HMODULE hEoCPlugin = GetModuleHandleW(L"EoCPlugin.dll");
13 if (hEoCPlugin != NULL) {
14 MessageBoxW(NULL, L"This version of the Osiris Extender can only be used ingame.", L"Osiris Extender Error", MB_OK | MB_ICONERROR);
15 TerminateProcess(GetCurrentProcess(), 1);
16 }
17
18 HMODULE hEoCApp = GetModuleHandleW(L"EoCApp.exe");
19 if (hEoCApp == NULL) {
20 return false;
21 }
22
23 MODULEINFO moduleInfo;
24 if (!GetModuleInformation(GetCurrentProcess(), hEoCApp, &moduleInfo, sizeof(moduleInfo))) {
25 Fail(L"Could not get module info of EoCApp.exe");
26 }
27
28 start = (uint8_t const *)moduleInfo.lpBaseOfDll;
29 size = moduleInfo.SizeOfImage;
30 return true;
31 }
32
33
34 void LibraryManager::FindMemoryManagerEoCApp()

Callers

nothing calls this directly

Calls 1

FailFunction · 0.70

Tested by

no test coverage detected