Impl Login

This commit is contained in:
Changhua 2022-08-12 22:10:34 +08:00
parent 6d86f4be99
commit 66f5090359
2 changed files with 4 additions and 5 deletions

View File

@ -57,12 +57,11 @@ int main()
wprintf(L"WxInitSDK: ");
status = WxInitSDK();
wcout << status << endl;
wprintf(L"%d\n", status);
if (status != 0) {
return 0;
}
#if 0
// 获取消息类型
wprintf(L"获取消息类型\n");
const MsgTypesMap_t WxMsgTypes = WxGetMsgTypes();
@ -97,7 +96,7 @@ int main()
// 测试获取数据库中的表
auto vDbTables = WxGetDbTables(L"ChatMsg.db");
printDbTables(vDbTables);
#endif
while (1) {
Sleep(10000); // 休眠释放CPU
}

View File

@ -3,8 +3,8 @@
#include "load_calls.h"
#define SUPPORT_VERSION L"3.7.0.29"
WxCalls_t wxCalls = { 0x23631D0, // Login Status
#define SUPPORT_VERSION L"3.7.0.30"
WxCalls_t wxCalls = { 0x2366538, // Login Status
{ 0x236307C, 0x23630F4, 0x2363128 }, // User Info: wxid, nickname, mobile
0x521D30, // Send Message
/* Receive Message: