From 96d726d156f88a2e75b1f2782ecf817048127b5d Mon Sep 17 00:00:00 2001 From: "Mr. eXoDia" Date: Tue, 11 Mar 2014 15:32:46 +0100 Subject: [PATCH] - fixed ImporterGetRemoteDLLBase --- TitanEngine/TitanEngine.Importer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TitanEngine/TitanEngine.Importer.cpp b/TitanEngine/TitanEngine.Importer.cpp index 2b4d791..879eefe 100644 --- a/TitanEngine/TitanEngine.Importer.cpp +++ b/TitanEngine/TitanEngine.Importer.cpp @@ -151,6 +151,10 @@ __declspec(dllexport) long long TITCALL ImporterGetRemoteDLLBaseEx(HANDLE hProce return EngineGetModuleBaseRemote(hProcess, szModuleName); } +__declspec(dllexport) long long TITCALL ImporterGetRemoteDLLBase(HANDLE hProcess, HMODULE LocalModuleBase) +{ + return EngineGetAPIAddressRemote(hProcess, (ULONG_PTR)LocalModuleBase); +} __declspec(dllexport) void* TITCALL ImporterGetAPIName(ULONG_PTR APIAddress) { @@ -180,10 +184,6 @@ __declspec(dllexport) long TITCALL ImporterGetDLLIndex(HANDLE hProcess, ULONG_PT { return((DWORD)EngineGlobalAPIHandler(hProcess, DLLBasesList, APIAddress, NULL, UE_OPTION_IMPORTER_RETURN_DLLINDEX)); } -__declspec(dllexport) long long TITCALL ImporterGetRemoteDLLBase(HANDLE hProcess, HMODULE LocalModuleBase) -{ - return((ULONG_PTR)EngineGlobalAPIHandler(hProcess, NULL, (ULONG_PTR)LocalModuleBase, NULL, UE_OPTION_IMPORTER_RETURN_DLLBASE)); -} __declspec(dllexport) bool TITCALL ImporterIsForwardedAPI(HANDLE hProcess, ULONG_PTR APIAddress) {