Impl GetSelfWxid

This commit is contained in:
Changhua 2024-05-03 18:14:31 +08:00
parent d849b79975
commit 54ead79f4d
3 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
WxCalls_t wxCalls = {
0x5AB9184, // Login Status
{ 0x2FFD484, 0x2FFD590, 0x2FFD500, 0x30238CC }, // User Info: wxid, nickname, mobile, home
{ 0x5AB8FC8, 0x5AB90A8, 0x5AB8FE8, 0x5A7F170 }, // User Info: wxid, nickname, mobile, home
{ 0x768140, 0xCE6C80, 0x756960 }, // Send Message
/* Receive Message:
Hook, call, msgId, type, isSelf, ts, roomId, content, wxid, sign, thumb, extra, msgXml */

View File

@ -68,7 +68,7 @@ bool func_is_login(uint8_t *out, size_t *len)
return true;
}
#if 0
bool func_get_self_wxid(uint8_t *out, size_t *len)
{
Response rsp = Response_init_default;
@ -87,7 +87,7 @@ bool func_get_self_wxid(uint8_t *out, size_t *len)
return true;
}
#if 0
bool func_get_msg_types(uint8_t *out, size_t *len)
{
Response rsp = Response_init_default;
@ -854,11 +854,11 @@ static bool dispatcher(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len
ret = func_is_login(out, out_len);
break;
}
#if 0
case Functions_FUNC_GET_SELF_WXID: {
ret = func_get_self_wxid(out, out_len);
break;
}
#if 0
case Functions_FUNC_GET_MSG_TYPES: {
ret = func_get_msg_types(out, out_len);
break;

View File

@ -22,7 +22,7 @@ string GetSelfWxid()
{
UINT64 wxidType = 0;
try {
wxidType = GET_UINT64(g_WeChatWinDllAddr + g_WxCalls.ui.wxid + 0x14);
wxidType = GET_UINT64(g_WeChatWinDllAddr + g_WxCalls.ui.wxid + 0x18);
if (wxidType == 0xF) {
return GET_STRING_FROM_P(g_WeChatWinDllAddr + g_WxCalls.ui.wxid);
} else {
@ -41,7 +41,7 @@ UserInfo_t GetUserInfo()
ui.wxid = GetSelfWxid();
UINT64 nameType = GET_UINT64(g_WeChatWinDllAddr + g_WxCalls.ui.nickName + 0x14);
UINT64 nameType = GET_UINT64(g_WeChatWinDllAddr + g_WxCalls.ui.nickName + 0x18);
if (nameType == 0xF) {
ui.name = GET_STRING_FROM_P(g_WeChatWinDllAddr + g_WxCalls.ui.nickName);
} else { // 0x1F