Permalink
Browse files

added entrypoint parameter to ScyllaStartGui

  • Loading branch information...
1 parent 4e17142 commit 3cc6660ca44888920bea28d7136531e8d40986a8 @mrexodia mrexodia committed Jan 21, 2016
Showing with 6 additions and 2 deletions.
  1. +2 −1 Scylla/FunctionExport.cpp
  2. +1 −0 Scylla/FunctionExport.h
  3. +2 −0 Scylla/MainGui.cpp
  4. +1 −1 Scylla_Exports.txt
@@ -168,11 +168,12 @@ BOOL WINAPI ScyllaDumpProcessA(DWORD_PTR pid, const char * fileToDump, DWORD_PTR
}
}
-INT WINAPI ScyllaStartGui(DWORD dwProcessId, HINSTANCE mod)
+INT WINAPI ScyllaStartGui(DWORD dwProcessId, HINSTANCE mod, DWORD_PTR entrypoint)
{
GUI_DLL_PARAMETER guiParam;
guiParam.dwProcessId = dwProcessId;
guiParam.mod = mod;
+ guiParam.entrypoint = entrypoint;
return InitializeGui(hDllModule, (LPARAM)&guiParam);
}
@@ -13,6 +13,7 @@ const int SCY_ERROR_PIDNOTFOUND = -5;
typedef struct _GUI_DLL_PARAMETER {
DWORD dwProcessId;
HINSTANCE mod;
+ DWORD_PTR entrypoint;
} GUI_DLL_PARAMETER, *PGUI_DLL_PARAMETER;
int InitializeGui(HINSTANCE hInstance, LPARAM param);
View
@@ -114,6 +114,8 @@ void MainGui::InitDllStartWithPreSelect( PGUI_DLL_PARAMETER guiParam )
}
}
}
+ if (guiParam->entrypoint)
+ EditOEPAddress.SetValue(guiParam->entrypoint);
}
BOOL MainGui::OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
View
@@ -13,7 +13,7 @@ const WCHAR * __stdcall ScyllaVersionInformationW();
const char * __stdcall ScyllaVersionInformationA();
DWORD __stdcall ScyllaVersionInformationDword();
-int __stdcall ScyllaStartGui(DWORD dwProcessId, HINSTANCE mod);
+int __stdcall ScyllaStartGui(DWORD dwProcessId, HINSTANCE mod, DWORD_PTR entrypoint);
int __stdcall ScyllaIatSearch(DWORD dwProcessId, DWORD_PTR * iatStart, DWORD * iatSize, DWORD_PTR searchStart, BOOL advancedSearch);
int __stdcall ScyllaIatFixAutoW(DWORD_PTR iatAddr, DWORD iatSize, DWORD dwProcessId, const WCHAR * dumpFile, const WCHAR * iatFixFile);

0 comments on commit 3cc6660

Please sign in to comment.