0
我有指向一個地址的函數指針。如何在一個進程中清空一個函數
#define CSpellBookWnd__MemorizeSet 0x557CD8
#define FUNCTION_AT_ADDRESS(function,offset) __declspec(naked) function\
{\
__asm{mov eax, offset};\
__asm{jmp eax};\
}
FUNCTION_AT_ADDRESS(void CSpellBookWnd::MemorizeSet(int *,int),CSpellBookWnd__MemorizeSet);
我只是想,而不是調用該函數做一些NOP的
我不太明白。你能提供一個預期用途的例子嗎?你的意思是「修改'FUNCTION_AT_ADDRESS',這是NOP嗎?」或者只有一些時間? – Angew