WeChatFerry/Spy/load_calls.cpp

24 lines
817 B
C++
Raw Normal View History

2021-02-12 23:21:57 +08:00
#include <iostream>
#include <map>
#include "load_calls.h"
2021-08-22 21:23:05 +08:00
#define SUPPORT_VERSION L"3.3.0.115"
WxCalls_t wxCalls = { 0x1DDF60C, // Login Status
{ 0x1DDF4BC, 0x1DDF534, 0x1DDF568 }, // User Info: wxid, nickname, mobile
0x3E3B80, // Send Message
/* Receive Message:
Hook, call, type, self, id, msgXml, roomId, wxId, content */
{ 0x3C0D70, 0x3C0FA0, 0x38, 0x3C, 0x184, 0x1D8, 0x48, 0x170, 0x70 } };
2021-02-12 23:21:57 +08:00
int LoadCalls(const wchar_t *version, WxCalls_t *calls)
{
2021-08-22 21:15:49 +08:00
if (wcscmp(version, SUPPORT_VERSION) != 0) {
2021-02-12 23:21:57 +08:00
return -1;
}
2021-08-22 21:15:49 +08:00
memcpy_s(calls, sizeof(WxCalls_t), &wxCalls, sizeof(WxCalls_t));
2021-02-12 23:21:57 +08:00
return 0;
}