1 Star 0 Fork 1

陈奇/ComWeChatRobot

forked from Janisa/ComWeChatRobot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
RobotEvent.cpp 839 Bytes
一键复制 编辑 原始数据 按行查看 历史
// RobotEvent.cpp: CRobotEvent 的实现
#include "pch.h"
#include "RobotEvent.h"
#define WX_MESSAGE 1
#define WX_LOG_MESSAGE 2
// CRobotEvent
STDMETHODIMP CRobotEvent::CPostMessage(DWORD pid, int msgtype, unsigned long long msgid, VARIANT *msg, int *__result)
{
// TODO: 在此处添加实现代码
// 将收到的消息广播给所有用户
switch (msgtype)
{
case WX_MESSAGE:
{
Fire_OnGetMessageEvent(pid, msgid, msg);
break;
}
case WX_LOG_MESSAGE:
{
break;
}
default:
break;
}
*__result = 0;
return S_OK;
}
/**
* \param pid 微信PID
* \param cookie Cookie
*/
STDMETHODIMP CRobotEvent::CRegisterWxPidWithCookie(DWORD pid, DWORD cookie, int *__result)
{
WxPidToEventCookie[pid].insert(cookie);
*__result = 0;
return S_OK;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/chen_q_i/ComWeChatRobot.git
git@gitee.com:chen_q_i/ComWeChatRobot.git
chen_q_i
ComWeChatRobot
ComWeChatRobot
master

搜索帮助