Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- memset(voidptr_AddressOfDetouredFunction, JMP_OPCODE, OPCODE_LENGTH) ;
- Relocation = static_cast<DATATYPE_ADDRESS> ( reinterpret_cast<unsigned long> (voidptr_AddressOfDetourFunction)
- - (reinterpret_cast<unsigned long> (voidptr_AddressOfDetouredFunction)
- + MIN_REQUIRED_FOR_DETOUR)) ;
- memcpy( reinterpret_cast<void*> (reinterpret_cast<unsigned long> (voidptr_AddressOfDetouredFunction)
- + OPCODE_LENGTH), &Relocation, ADDRESS_LENGTH) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement