2021-02-12 23:21:57 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "framework.h"
|
|
|
|
|
#include <queue>
|
|
|
|
|
|
2022-08-07 15:03:17 +08:00
|
|
|
|
#include "rpc_h.h"
|
2021-02-12 23:21:57 +08:00
|
|
|
|
|
|
|
|
|
typedef struct UserInfoCall {
|
|
|
|
|
DWORD wxid;
|
|
|
|
|
DWORD nickName;
|
|
|
|
|
DWORD mobile;
|
|
|
|
|
} UserInfoCall_t;
|
|
|
|
|
|
|
|
|
|
typedef struct RecvMsg {
|
|
|
|
|
DWORD hook; // Hook地址
|
|
|
|
|
DWORD call; // Call地址
|
|
|
|
|
DWORD type; // 消息类型地址
|
|
|
|
|
DWORD isSelf; // 是否自己发送标志地址
|
|
|
|
|
DWORD msgId; // 消息ID地址
|
|
|
|
|
DWORD msgXml; // 消息xml内容地址
|
|
|
|
|
DWORD roomId; // 群聊时,为群ID;私聊时,为微信ID
|
2022-08-07 15:03:17 +08:00
|
|
|
|
DWORD wxId; // 私聊时,为空;群聊时,为发送者微信ID
|
2021-02-12 23:21:57 +08:00
|
|
|
|
DWORD content; // 消息内容地址
|
|
|
|
|
} RecvMsg_t;
|
|
|
|
|
|
|
|
|
|
typedef struct SendImg {
|
|
|
|
|
DWORD call1;
|
|
|
|
|
DWORD call2;
|
|
|
|
|
DWORD call3;
|
|
|
|
|
} SendImg_t;
|
|
|
|
|
|
2022-08-07 21:08:27 +08:00
|
|
|
|
typedef struct Contact {
|
|
|
|
|
DWORD base;
|
|
|
|
|
DWORD head;
|
|
|
|
|
DWORD wxId;
|
|
|
|
|
DWORD wxCode;
|
|
|
|
|
DWORD wxName;
|
|
|
|
|
DWORD wxGender;
|
|
|
|
|
DWORD wxCountry;
|
|
|
|
|
DWORD wxProvince;
|
|
|
|
|
DWORD wxCity;
|
|
|
|
|
} Contact_t;
|
|
|
|
|
|
2021-02-12 23:21:57 +08:00
|
|
|
|
typedef struct WxCalls {
|
|
|
|
|
DWORD login; // 登录状态
|
|
|
|
|
UserInfoCall_t ui; // 用户信息
|
|
|
|
|
DWORD sendTextMsg; // 发送消息
|
|
|
|
|
RecvMsg_t recvMsg; // 接收消息
|
2021-08-22 21:57:16 +08:00
|
|
|
|
SendImg_t sendImg; // 发送图片
|
2022-08-07 21:08:27 +08:00
|
|
|
|
Contact_t contact; // 获取联系人
|
2021-08-22 21:57:16 +08:00
|
|
|
|
} WxCalls_t;
|
2021-02-12 23:21:57 +08:00
|
|
|
|
|
|
|
|
|
typedef struct TextStruct {
|
|
|
|
|
wchar_t *text;
|
|
|
|
|
DWORD size;
|
|
|
|
|
DWORD capacity;
|
|
|
|
|
char fill[8];
|
|
|
|
|
} TextStruct_t;
|
|
|
|
|
|
|
|
|
|
typedef std::queue<RpcMessage_t> MsgQueue_t;
|