mirror of https://github.com/x64dbg/GleeBug
Implement some more missing APIs
This commit is contained in:
parent
3c02faea83
commit
5bc2e682e9
|
|
@ -300,6 +300,14 @@ public:
|
||||||
return &mMainProcess;
|
return &mMainProcess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ULONG_PTR GetDebuggedFileBaseAddress()
|
||||||
|
{
|
||||||
|
auto itr = mProcesses.find(mMainProcess.dwProcessId);
|
||||||
|
if (itr != mProcesses.end())
|
||||||
|
return (ULONG_PTR)itr->second->createProcessInfo.lpBaseOfImage;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//Stepping
|
//Stepping
|
||||||
void StepOver(LPVOID CallBack)
|
void StepOver(LPVOID CallBack)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,17 @@ __declspec(dllexport) ULONG_PTR TITCALL ImporterGetRemoteAPIAddressEx(const char
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__declspec(dllexport) ULONG_PTR TITCALL GetDebuggedFileBaseAddress()
|
||||||
|
{
|
||||||
|
return emu.GetDebuggedFileBaseAddress();
|
||||||
|
}
|
||||||
|
|
||||||
|
__declspec(dllexport) bool TITCALL DumpProcess(HANDLE hProcess, LPVOID ImageBase, const char* szDumpFileName, ULONG_PTR EntryPoint)
|
||||||
|
{
|
||||||
|
// Just fails https://github.com/x64dbg/testplugin/blob/4ceae85ca8e8b63ff155495311c2c4b92febce99/test.cpp#L289, so not worth implementing
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//Registers
|
//Registers
|
||||||
__declspec(dllexport) ULONG_PTR TITCALL GetContextDataEx(HANDLE hActiveThread, DWORD IndexOfRegister)
|
__declspec(dllexport) ULONG_PTR TITCALL GetContextDataEx(HANDLE hActiveThread, DWORD IndexOfRegister)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue