27 lines
792 B
C++
27 lines
792 B
C++
#include <iostream>
|
|
#include <map>
|
|
|
|
#include "load_calls.h"
|
|
|
|
#define SUPPORT_VERSION L"3.7.0.29"
|
|
WxCalls_t wxCalls = {
|
|
0x23631D0, // 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 },
|
|
{ 0x5CCB50, 0x6F5C0, 0x3E3490 } // Send Image Message
|
|
};
|
|
|
|
int LoadCalls(const wchar_t* version, WxCalls_t* calls)
|
|
{
|
|
if (wcscmp(version, SUPPORT_VERSION) != 0) {
|
|
return -1;
|
|
}
|
|
|
|
memcpy_s(calls, sizeof(WxCalls_t), &wxCalls, sizeof(WxCalls_t));
|
|
|
|
return 0;
|
|
}
|