Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include "Detours.h"
- #define CHAT_MSG_ADDR (BYTE*)0x007BC910
- typedef void(__fastcall *P0081_t)(DWORD* hstr);
- P0081_t tramp;
- void __fastcall det_P0081(DWORD* hstr){
- if(*hstr == 0x641F8101)
- hstr[3] = 0x00000100;
- tramp(hstr);
- }
- BOOL WINAPI DllMain(HMODULE hMod,DWORD dwReason,LPVOID)
- {
- if(dwReason == DLL_PROCESS_ATTACH)
- tramp = (P0081_t)DetourFunc(CHAT_MSG_ADDR,(BYTE*)det_P0081,6);
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement