feat(misc): impl refresh pyq
This commit is contained in:
parent
bc7f91fc54
commit
3039599905
@ -10,17 +10,19 @@
|
|||||||
#include "database_executor.h"
|
#include "database_executor.h"
|
||||||
#include "log.hpp"
|
#include "log.hpp"
|
||||||
#include "message_handler.h"
|
#include "message_handler.h"
|
||||||
|
#include "offsets.h"
|
||||||
#include "rpc_helper.h"
|
#include "rpc_helper.h"
|
||||||
#include "spy_types.h"
|
#include "spy_types.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
namespace fs = std::filesystem;
|
|
||||||
|
|
||||||
extern QWORD g_WeChatWinDllAddr;
|
extern QWORD g_WeChatWinDllAddr;
|
||||||
|
|
||||||
namespace misc
|
namespace misc
|
||||||
{
|
{
|
||||||
|
using namespace std;
|
||||||
|
namespace fs = std::filesystem;
|
||||||
|
namespace OsSns = Offsets::Misc::Sns;
|
||||||
|
|
||||||
#define HEADER_PNG1 0x89
|
#define HEADER_PNG1 0x89
|
||||||
#define HEADER_PNG2 0x50
|
#define HEADER_PNG2 0x50
|
||||||
#define HEADER_JPG1 0xFF
|
#define HEADER_JPG1 0xFF
|
||||||
@ -28,10 +30,6 @@ namespace misc
|
|||||||
#define HEADER_GIF1 0x47
|
#define HEADER_GIF1 0x47
|
||||||
#define HEADER_GIF2 0x49
|
#define HEADER_GIF2 0x49
|
||||||
|
|
||||||
#define OS_GET_SNS_DATA_MGR 0x21E2200
|
|
||||||
#define OS_GET_SNS_FIRST_PAGE 0x2E212D0
|
|
||||||
#define OS_GET_SNS_TIMELINE_MGR 0x2DB3390
|
|
||||||
#define OS_GET_SNS_NEXT_PAGE 0x2EC8970
|
|
||||||
#define OS_NEW_CHAT_MSG 0x1B5E140
|
#define OS_NEW_CHAT_MSG 0x1B5E140
|
||||||
#define OS_FREE_CHAT_MSG 0x1B55850
|
#define OS_FREE_CHAT_MSG 0x1B55850
|
||||||
#define OS_GET_CHAT_MGR 0x1B876C0
|
#define OS_GET_CHAT_MGR 0x1B876C0
|
||||||
@ -103,12 +101,12 @@ static int get_first_page()
|
|||||||
{
|
{
|
||||||
int status = -1;
|
int status = -1;
|
||||||
|
|
||||||
get_sns_data_mgr_t GetSNSDataMgr = (get_sns_data_mgr_t)(g_WeChatWinDllAddr + OS_GET_SNS_DATA_MGR);
|
get_sns_data_mgr_t GetSNSDataMgr = (get_sns_data_mgr_t)(g_WeChatWinDllAddr + OsSns::DATA_MGR);
|
||||||
get_sns_first_page_t GetSNSFirstPage = (get_sns_first_page_t)(g_WeChatWinDllAddr + OS_GET_SNS_FIRST_PAGE);
|
get_sns_first_page_t GetSNSFirstPage = (get_sns_first_page_t)(g_WeChatWinDllAddr + OsSns::FIRST);
|
||||||
|
|
||||||
QWORD buff[16] = { 0 };
|
QWORD buff[16] = { 0 };
|
||||||
QWORD mgr = GetSNSDataMgr();
|
QWORD mgr = GetSNSDataMgr();
|
||||||
status = (int)GetSNSFirstPage(mgr, (QWORD)buff, 1);
|
status = (int)GetSNSFirstPage(mgr, (QWORD)&buff, 1);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -117,9 +115,8 @@ static int get_next_page(QWORD id)
|
|||||||
{
|
{
|
||||||
int status = -1;
|
int status = -1;
|
||||||
|
|
||||||
get_sns_timeline_mgr_t GetSnsTimeLineMgr = (get_sns_timeline_mgr_t)(g_WeChatWinDllAddr + OS_GET_SNS_TIMELINE_MGR);
|
get_sns_timeline_mgr_t GetSnsTimeLineMgr = (get_sns_timeline_mgr_t)(g_WeChatWinDllAddr + OsSns::TIMELINE);
|
||||||
get_sns_next_page_scene_t GetSNSNextPageScene
|
get_sns_next_page_scene_t GetSNSNextPageScene = (get_sns_next_page_scene_t)(g_WeChatWinDllAddr + OsSns::NEXT);
|
||||||
= (get_sns_next_page_scene_t)(g_WeChatWinDllAddr + OS_GET_SNS_NEXT_PAGE);
|
|
||||||
|
|
||||||
QWORD mgr = GetSnsTimeLineMgr();
|
QWORD mgr = GetSnsTimeLineMgr();
|
||||||
status = (int)GetSNSNextPageScene(mgr, id);
|
status = (int)GetSNSNextPageScene(mgr, id);
|
||||||
|
@ -259,7 +259,7 @@ const std::unordered_map<Functions, RpcServer::FunctionHandler> RpcServer::rpcFu
|
|||||||
{ Functions_FUNC_EXEC_DB_QUERY, [](const Request &r, uint8_t *out, size_t *len) { return db::rpc_exec_db_query(r.msg.query, out, len); } },
|
{ Functions_FUNC_EXEC_DB_QUERY, [](const Request &r, uint8_t *out, size_t *len) { return db::rpc_exec_db_query(r.msg.query, out, len); } },
|
||||||
// { Functions_FUNC_ACCEPT_FRIEND, [](const Request &r, uint8_t *out, size_t *len) { return contact::rpc_accept_friend(r.msg.v, out, len); } },
|
// { Functions_FUNC_ACCEPT_FRIEND, [](const Request &r, uint8_t *out, size_t *len) { return contact::rpc_accept_friend(r.msg.v, out, len); } },
|
||||||
// { Functions_FUNC_RECV_TRANSFER, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_receive_transfer(r.msg.tf, out, len); } },
|
// { Functions_FUNC_RECV_TRANSFER, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_receive_transfer(r.msg.tf, out, len); } },
|
||||||
// { Functions_FUNC_REFRESH_PYQ, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_refresh_pyq(r.msg.ui64, out, len); } },
|
{ Functions_FUNC_REFRESH_PYQ, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_refresh_pyq(r.msg.ui64, out, len); } },
|
||||||
// { Functions_FUNC_DOWNLOAD_ATTACH, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_download_attachment(r.msg.att, out, len); } },
|
// { Functions_FUNC_DOWNLOAD_ATTACH, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_download_attachment(r.msg.att, out, len); } },
|
||||||
// { Functions_FUNC_GET_CONTACT_INFO, [](const Request &r, uint8_t *out, size_t *len) { return contact::rpc_get_contact_info(r.msg.str, out, len); } },
|
// { Functions_FUNC_GET_CONTACT_INFO, [](const Request &r, uint8_t *out, size_t *len) { return contact::rpc_get_contact_info(r.msg.str, out, len); } },
|
||||||
// { Functions_FUNC_REVOKE_MSG, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_revoke_message(r.msg.ui64, out, len); } },
|
// { Functions_FUNC_REVOKE_MSG, [](const Request &r, uint8_t *out, size_t *len) { return misc::rpc_revoke_message(r.msg.ui64, out, len); } },
|
||||||
|
Loading…
Reference in New Issue
Block a user