From 61cf4e8672893f8ad1e5463a3335efdf74eb1bed Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Thu, 28 Dec 2017 15:38:05 +0100 Subject: [PATCH] remove unused exports --- TitanEngineEmulator/Emulator.h | 10 --------- TitanEngineEmulator/TitanEngineEmulator.cpp | 25 --------------------- 2 files changed, 35 deletions(-) diff --git a/TitanEngineEmulator/Emulator.h b/TitanEngineEmulator/Emulator.h index b040248..d6b15bb 100644 --- a/TitanEngineEmulator/Emulator.h +++ b/TitanEngineEmulator/Emulator.h @@ -152,16 +152,6 @@ public: mSetDebugPrivilege = VariableSet; } - PROCESS_INFORMATION* TitanGetProcessInformation() - { - return &mMainProcess; - } - - STARTUPINFOW* TitanGetStartupInformation() - { - return &mMainStartupInfo; - } - //Misc void* GetPEBLocation(HANDLE hProcess) { diff --git a/TitanEngineEmulator/TitanEngineEmulator.cpp b/TitanEngineEmulator/TitanEngineEmulator.cpp index 7f5295d..45bd063 100644 --- a/TitanEngineEmulator/TitanEngineEmulator.cpp +++ b/TitanEngineEmulator/TitanEngineEmulator.cpp @@ -81,27 +81,12 @@ __declspec(dllexport) void TITCALL SetEngineVariable(DWORD VariableId, bool Vari emu.SetEngineVariable(VariableId, VariableSet); } -__declspec(dllexport) PROCESS_INFORMATION* TITCALL TitanGetProcessInformation() -{ - return emu.TitanGetProcessInformation(); -} - -__declspec(dllexport) STARTUPINFOW* TITCALL TitanGetStartupInformation() -{ - return emu.TitanGetStartupInformation(); -} - //Misc __declspec(dllexport) void* TITCALL GetPEBLocation(HANDLE hProcess) { return emu.GetPEBLocation(hProcess); } -__declspec(dllexport) void* TITCALL GetPEBLocation64(HANDLE hProcess) -{ - return emu.GetPEBLocation64(hProcess); -} - __declspec(dllexport) void* TITCALL GetTEBLocation(HANDLE hThread) { return emu.GetTEBLocation(hThread); @@ -128,11 +113,6 @@ __declspec(dllexport) ULONG_PTR TITCALL GetContextDataEx(HANDLE hActiveThread, D return emu.GetContextDataEx(hActiveThread, IndexOfRegister); } -__declspec(dllexport) ULONG_PTR TITCALL GetContextData(DWORD IndexOfRegister) -{ - return GetContextDataEx(nullptr, IndexOfRegister); -} - __declspec(dllexport) bool TITCALL SetContextDataEx(HANDLE hActiveThread, DWORD IndexOfRegister, ULONG_PTR NewRegisterValue) { return emu.SetContextDataEx(hActiveThread, IndexOfRegister, NewRegisterValue); @@ -179,11 +159,6 @@ __declspec(dllexport) ULONG_PTR TITCALL ConvertVAtoFileOffsetEx(ULONG_PTR FileMa return emu.ConvertVAtoFileOffsetEx(FileMapVA, FileSize, ImageBase, AddressToConvert, AddressIsRVA, ReturnType); } -__declspec(dllexport) ULONG_PTR TITCALL ConvertVAtoFileOffset(ULONG_PTR FileMapVA, ULONG_PTR AddressToConvert, bool ReturnType) -{ - return ConvertVAtoFileOffsetEx(FileMapVA, 0, 0, AddressToConvert, false, ReturnType); -} - __declspec(dllexport) ULONG_PTR TITCALL GetPE32DataFromMappedFile(ULONG_PTR FileMapVA, DWORD WhichSection, DWORD WhichData) { return emu.GetPE32DataFromMappedFile(FileMapVA, WhichSection, WhichData);