hook语音

This commit is contained in:
hugy 2023-03-27 11:58:04 +08:00
parent 93798ddeca
commit 1a1a1fe964

View File

@ -5,9 +5,9 @@
using namespace std; using namespace std;
#define WX_HOOK_VOICE_OFFSET 0xccd561 #define WX_HOOK_VOICE_OFFSET 0xd4d8d8
#define WX_HOOK_VOICE_NEXT_OFFSET 0x1f74560 #define WX_HOOK_VOICE_NEXT_OFFSET 0x203d130
#define WX_SELF_ID_OFFSET 0x2E2CD3C #define WX_SELF_ID_OFFSET 0x2FFD484
static wstring kVoiceStorePath = L""; static wstring kVoiceStorePath = L"";
static int kVoiceHooked = FALSE; static int kVoiceHooked = FALSE;
@ -41,11 +41,11 @@ void OnHookVoice(DWORD buff,int len , DWORD msg_addr) {
/// @brief hook voice implement /// @brief hook voice implement
_declspec(naked) void handle_voice() { _declspec(naked) void handle_voice() {
__asm { __asm {
PUSHAD PUSHAD
PUSHFD PUSHFD
PUSH EDI PUSH EDI
PUSH EDX PUSH EDX
PUSH EAX PUSH EAX
CALL OnHookVoice CALL OnHookVoice
ADD ESP, 0xC ADD ESP, 0xC
POPFD POPFD