WeChatFerry/Rpc/rpc.idl

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-08-07 15:36:55 +08:00
[
2021-02-12 23:21:57 +08:00
uuid(ed838ecd-8a1e-4da7-bfda-9f2d12d07893),
version(1.0),
implicit_handle(handle_t hSpyBinding),
]
interface ISpy
2022-08-07 15:03:17 +08:00
{
import "oaidl.idl";
typedef struct RpcMessage {
int self; // 是否自己发的消息0=否1=是
int type; // 消息类型
int source; // 消息来源0=好友消息1=群消息
BSTR id; // 消息ID
BSTR xml; // 群其他消息
BSTR wxId; // 发送人微信ID
BSTR roomId; // 群ID
BSTR content; // 消息内容MAC版最大16384即16KB
2022-08-07 20:08:54 +08:00
} RpcMessage_t;
typedef struct RpcIntBstrPair {
int key;
BSTR value;
} RpcIntBstrPair_t;
typedef RpcIntBstrPair_t* PRpcIntBstrPair_t;
typedef RpcIntBstrPair_t** PPRpcIntBstrPair_t;
2021-02-12 23:21:57 +08:00
int IsLogin();
2021-08-22 21:57:16 +08:00
int SendTextMsg([ in, string ] const wchar_t *wxid, [ in, string ] const wchar_t *at_wxid, [ in, string ] const wchar_t *msg);
int SendImageMsg([ in, string ] const wchar_t *wxid, [ in, string ] const wchar_t *path);
2022-08-07 20:08:54 +08:00
int GetMsgTypes([ out ] int *pNum, [ out, size_is(, *pNum) ] PPRpcIntBstrPair_t *msgTypes);
2021-02-12 23:21:57 +08:00
void EnableReceiveMsg();
2022-08-07 15:03:17 +08:00
[callback] int ReceiveMsg([ in ] RpcMessage_t rpcMsg);
2021-02-12 23:21:57 +08:00
};