Skip to content

Commit

Permalink
Merge pull request #34 from mrexodia/dll_entrypoint
Browse files Browse the repository at this point in the history
added entrypoint parameter to ScyllaStartGui
  • Loading branch information
NtQuery committed Feb 27, 2016
2 parents 4e17142 + 3cc6660 commit 93d2a2c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Scylla/FunctionExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions Scylla/FunctionExport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions Scylla/MainGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Scylla_Exports.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 93d2a2c

Please sign in to comment.