Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __declspec(naked) void hkwglSwapBuffers()
- {
- //Take care of the bytes we wrote over with a jmp
- __asm
- {
- mov edi, edi
- push ebp
- mov ebp, esp;
- }
- //Do our drawing and stuff here
- __asm jmp 0x18EB5E26
- }
- Hook hkwglSwapBuffs((BYTE*)0x18EB5E21, (DWORD)hkwglSwapBuffers, 0x5);
- //Somewhere in main
- hkwglSwapBuffs.ToggleHook();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement