#pragma once #include "framework.h" typedef struct UserInfoCall { DWORD wxid; DWORD nickName; DWORD mobile; DWORD home; } 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 DWORD wxId; // 私聊时,为空;群聊时,为发送者微信ID DWORD content; // 消息内容地址 DWORD thumb; // 缩略图 DWORD extra; // 附加数据 } RecvMsg_t; typedef struct Sendfile { DWORD call1; DWORD call2; DWORD call3; } Sendfile_t; typedef struct Contact { DWORD base; DWORD head; DWORD wxId; DWORD wxCode; DWORD wxRemark; DWORD wxName; DWORD wxGender; DWORD wxCountry; DWORD wxProvince; DWORD wxCity; } Contact_t; typedef struct Sql { DWORD exec; DWORD base; DWORD start; DWORD end; DWORD slot; DWORD name; } Sql_t; typedef struct NewFriend { DWORD call1; DWORD call2; DWORD handle; } NewFriend_t; typedef struct RoomMember { DWORD call1; DWORD call2; DWORD call3; } RoomMember_t; typedef struct Xml { DWORD call1; DWORD call2; DWORD call3; DWORD call4; DWORD param; } Xml_t; typedef struct WxCalls { DWORD login; // 登录状态 UserInfoCall_t ui; // 用户信息 DWORD sendTextMsg; // 发送消息 RecvMsg_t recvMsg; // 接收消息 Sendfile_t sendImg; // 发送图片 Sendfile_t sendFile; // 发送文件 Xml_t sendXml; // 发送XML Sendfile_t sendEmo; // 发送表情 Contact_t contact; // 获取联系人 Sql_t sql; // 执行 SQL NewFriend_t anf; // 通过好友申请 RoomMember_t arm; // 添加群成员 } WxCalls_t; typedef struct WxString { wchar_t *text; DWORD size; DWORD capacity; char fill[8]; } WxString_t;