jsonqwsdk

jsonqwsdk


函数原型.h

<h5>调用非常简单,只需导出</h5> <p>SetContext SendCommand GetUserCommand 这3个函数 即可 使用dll</p> <p>部分语言需要使用 的导出名: _SetContext@20 _SendCommand@4 _GetUserCommand@4</p> <pre><code>以下函数 调用约定均为 __stdcall extern &amp;quot;C&amp;quot; { //函数名称 SetContext //功能: 设置回调函数 //pwDllPath 存放 sdk dll的绝对路径 比如 &amp;quot;E:\\4.0.2.6026\\sdk\\Debug&amp;quot; //pSign: 登录信息回调函数 //pMonmsg: 消息监控回调函数 //pMultifun: 多功能 回调函数 //pkey:授权key 启动sdk用 void __stdcall SetContext(const char* pwDllPath, PVOID pSign, PVOID pMonmsg, PVOID pMultifun, const char* pkey); //函数名称 SendCommand //功能: 下发 功能请求 json给企微 //pjson: 请求json //返回值 整型: 下发成功 1,失败0, 如果 启动企微 返回 企微进程pid int __stdcall SendCommand(const char* pjson); //函数名称 GetUserCommand //功能: 获取 用户信息功能 //pjson: 请求json //返回: 用户信息json const char* __stdcall GetUserCommand(const char* pjson); //函数名称 SendTextEx 发送文本消息的c语言接口版本, 支持 Emoji表情字符 //功能: 发送文字 //dwPid: 企微的pid //pwwxid: 发送人uid utf8编码 //pwText: 文字内容 utf8编码 //request_id: 消息执行结果id, utf8编码, 自定义一个 guid字符串, 执行发消息后 会回调返回, 不需要使用 填 &amp;quot;&amp;quot; int __stdcall SendTextEx(int dwPid, const char* pwwxid, const char* pwText, const char* pwRequest_id); } </code></pre>

页面列表

ITEM_HTML