Attempted to implement LastCalledFunctionPointer and NextCalledFunctionPointer, aborted as not useful enough and unsure how to make these user-friendly.

This commit is contained in:
Michael Dirks
2016-01-04 03:43:35 +01:00
parent 57c310b0fc
commit 2941a6b740
3 changed files with 19 additions and 0 deletions
+15
View File
@@ -53,6 +53,21 @@ DLL_METHOD intptr_t DLL_CALL BP_GetFunctionPointer()
}
#pragma comment(linker, "/EXPORT:BP_GetFunctionPointer=_BP_GetFunctionPointer@0")
// Didn't work out, overloading a Runtime Function makes it disappear.
/*DLL_METHOD intptr_t DLL_CALL BP_GetLastCalledFunctionPointer( )
{
// Scan backwards in executable memory for a eax assign.
return 0;
}
#pragma comment(linker, "/EXPORT:BP_GetLastCalledFunctionPointer=_BP_GetLastCalledFunctionPointer@0")
DLL_METHOD intptr_t DLL_CALL BP_GetNextCalledFunctionPointer()
{
// Scan forwards in executable memory for a eax assign.
return 0;
}
#pragma comment(linker, "/EXPORT:BP_GetNextCalledFunctionPointer=_BP_GetNextCalledFunctionPointer@0")*/
DLL_METHOD intptr_t DLL_CALL BP_GetVariablePointer(int32_t pVariable)
{
intptr_t BasePointer;