///
/// 账户与密码登录方式
///
/// 接口对象指针
/// 用户名
/// 二维码验证密码
/// 二级指针,json字符串,返回执行结果
///
public static extern void WXUserLogin(int objects, string user, string password, int result);
///
/// 手机登陆
///
/// 接口对象指针
/// 用户名
/// 二维码验证密码
/// 二级指针,json字符串,返回执行结果
///
public static extern void WXPhoneLogin(int objects, string user, string password, int result);
///
/// 获取登陆验证码
///
/// 接口对象指针
/// 手机号码,格式+8613666666666
/// 二级指针,json字符串,返回执行结果
///
public static extern void WXGetLoginVerifyCode(int objects, string phone_number, int result);
///
/// 发送登陆验证码
///
/// 接口对象指针
/// 手机号码,格式+8613666666666
/// 验证码
/// 二级指针,json字符串,返回执行结果
///
public static extern void WXSendLoginVerifyCode(int objects, string phone_number, string verify_code, int result);
///
/// 获取指定用户详细信息
///
/// 接口对象指针
/// 目标微信帐户
/// 二级指针,json字符串,返回执行结果
public static extern void WXGetContact(int objects, string user, int result);
///
/// 获取好友朋友圈信息
///
/// 接口对象指针
/// 对方用户名
/// 获取到的最后一次的id,第一次调用设置为空
///
public static extern void WXSnsUserPage(int objects, string user, string id, int result);
///
/// 获取朋友圈消息详情(例如评论)
///
///
/// 朋友圈消息id
///
public static extern void WXSnsObjectDetail(int objects, string id, int result);
///
/// 朋友圈操作(删除评论,取消赞)
///
///
/// 朋友圈消息id
/// 操作类型,4为删除评论,5为取消赞
/// 当type为4时,对应删除评论的id,通过WXSnsObjectDetail接口获取。当type为5时,comment不可用,置为0.
///
/// 原备注:评论类型,当删除评论时可用,2或者3.(规律未知)
///
/// 当type=4,且comment_type=3时,将删除指定的comment的评论id的评论
/// 当type=5时,comment和comment_type随便填,不影响。这是取消赞的。
///
///
public static extern void WXSnsObjectOp(int objects, string id, int type, int comment, int comment_type, int result);
///
/// 搜索指定用户详细信息
///
///
/// 目标微信帐户
///
public static extern void WXSearchContact(int objects, string user, int result);
///
/// 主动添加好友
///
///
/// 对方stranger字符串,例如v1_caa184cca678097XXXXXXXXXXXXXXXXXXXX70340e8ae5f3cad28347ad4@stranger
/// 对方stranger字符串
///
/// 添加好友来源
/// type来源值:
/// 1 -通过QQ好友添加--可以
/// 2 -通过搜索邮箱--可加但无提示
/// 3 -通过微信号搜索--可以
/// 5 -通过朋友验证消息-可加但无提示
/// 7 -通过朋友验证消息(可回复)-可加但无提示
/// 12 -来自QQ好友--可以
/// 13 -通过手机通讯录添加--可以
/// 14 -通过群来源--no
/// 15 -通过搜索手机号--可以
/// 16 -通过朋友验证消息-可加但无提示
/// 17 -通过名片分享--no
/// 18 -通过附近的人--可以(貌似只需要v1就够了)
/// 22 -通过摇一摇打招呼方式--可以
/// 25 -通过漂流瓶---no
/// 30 -通过二维码方式--可以
///
/// 添加好友时的验证信息
///
public static extern void WXAddUser(int objects, string stranger, string strangerV2, int type, string verify, int result);
///
/// 删除指定好友
///
///
/// 对方用户名
///
public static extern void WXDeleteUser(int objects, string user, int result);
///
/// 接受好友请求
///
///
/// 对方stranger字符串,这是v1参数,例如v1_caa184cca678097XXXXXXXXXXXXXXXXXXXX70340e8ae5f3cad28347ad4@stranger
/// 好友请求ticket,这是stranger的v2参数。不论是v1还是v2,在某人加我为好友时,微信就会发起回调,在回调中,我们会得到v1和v2的参数值
///
public static extern void WXAcceptUser(int objects, string stranger, string ticket, int result);
///
/// 心跳
///
/// 接口指针对象WxUser
/// 二级指针,返回执行结果
public static extern void WXHeartBeat(int objects, int result);
///
/// 获取登录token
///
///
///
public static extern void WXGetLoginToken(int objects, int result);
///
/// 使用62数据和token实现二次自动登录
///
///
/// 调用WXGetLoginToken获取token字段数据
///
public static extern void WXLoginRequest(int objects, string token, int result);
///
/// 断线后重连,二次自动登录。一般非断线下如果要自动登录,是使用WXLoginRequest方法来做二次登录。若断线再连就使用WXAutoLogin
///
///
/// 调用WXGetLoginToken获取token字段数据
///
public static extern void WXAutoLogin(int objects, string token, int result);
///
/// 加载62数据
///
/// 接口指针对象WxUser
/// 62数据内容
/// 62数据内容
/// 二级指针,返回执行结果
public static extern void WXLoadWxDat(int objects, byte[] wxdata, int wx_size, int result);
///
/// 获取url访问token
///
///
/// 公众号用户名gh_*******开头的
/// http://xxxxxxxxxxxxxx访问连接
///
public static extern void WXGetRequestToken(int objects, string user, string url, int result);
///
/// 返回公众号信息
///
///
/// 公众号或V1
///
public static extern void WXGetSubscriptionInfo(int objects, string user, int result);
///
/// 设置头像
///
/// 接口指针对象WxUser
/// 图片数据
/// 图片大小
/// 二级指针,返回执行结果
public static extern void WXSetHeadImage(int objects, byte[] image_data, int image_size, int result);
///
/// 发送文字消息
///
/// 接口指针对象WxUser
/// 对方用户名
/// 消息内容
/// @好友列表,json数组 {"wxid1","wxid2"} 不at传null
/// 二级指针,返回执行结果串,返回执行结果
public static extern void WXSendMsg(int objects, string user, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))] string content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))] string at, int result);
///
/// 设置代理
///
///
/// http代理服务器,格式192.168.1.1:8888
/// 代理类型,1为http代理,2为socks4,3为socks5(需要用户名和密码)
/// 代理的用户名,socks5需要。
/// 代理的密码,socks5需要。
///
public static extern void WXSetProxyInfo(int objects, string proxy, int type, string user, string password, int result);
///
/// 查看附近的人
///
///
/// 浮点数,经度
/// 浮点数,维度
///
public static extern void WXGetPeopleNearby(int objects, float logitude, float latitude, int result);
///
/// 接收红包
///
///
/// 整个红包消息结构
///
public static extern void WXReceiveRedPacket(int objects, string red_packet, int result);
///
/// 查看红包
///
///
/// 整个红包消息结构
/// 0代表第一页 11代表第二页 +11代表翻页
///
public static extern void WXQueryRedPacket(int objects, string red_packet, int index, int result);
///
/// 发送图片消息
///
///
/// 接收目标
/// 图片
/// 图片大小
///
public static extern void WXSendImage(int objects, string toUser, byte[] image_data, int image_size, int result);
///
/// 打招呼
///
///
/// 对方的stranger串
/// 消息内容,可为空。为空时显示打了个招呼
///
public static extern void WXSayHello(int objects, string stranger, string content, int result);
///
/// 取消堆
///
///
///
///
//public static extern int Auth(string key);
///
///
///
/// 连接服务器的ip地址
/// 该服务器的端口号
///
public static extern int WXSetNetworkVerifyInfo(string ip, int port);
///
/// 取消堆
///
///
///
///
public static extern int test();
///
/// 获取消息语音(语音消息大于20秒时通过该接口获取)
///
/// 接口指针对象WxUser
/// 收到的整个语音消息
/// 二级指针,返回执行结果
///
public static extern int WXGetMsgVoice(int objects, string msg, int result);
///
/// 接受转账
///
///
/// 转账消息
///
///
public static extern int WXTransferOperation(int objects, string transfer, int result);
///
/// 发送朋友圈
///
///
/// 消息结构
///
///
public static extern int WXSendMoments(int objects, string content, int result);
///
/// 群发消息
///
///
/// 用户名json数组 ["AB1","AC2","AD3"]
/// 消息内容,可为空。为空时显示打了个招呼
///
///
public static extern int WXMassMessage(int objects, string user, string content, int result);
///
/// 生成62数据
///
/// 注意:62数据是扫码登录成功后,再获取,并保存下来,而不是其它方式登录后再保存。并且还要使用方法WXGetLoginToken保存下token
///
///
///
///
public static extern int WXGenerateWxDat(int objects, int result);
///
/// 领取红包
///
///
/// 整个红包消息结构
/// 通过接受红包返回的key
///
///
public static extern int WXOpenRedPacket(int objects, string red_packet, string key, int result);
///
/// 发送APP消息(分享应用或者朋友圈链接等)
///
/// 接口指针对象WxUser
/// 对方用户名
/// 消息内容(整个消息结构)
/// 二级指针,返回执行结果
///
public static extern int WXSendAppMsg(int objects, string user, string content, int result);
///
/// 同步收藏消息(用户获取收藏对象的id)
///
///
/// 同步的key,第一次调用设置为空
///
///
public static extern int WXFavSync(int objects, string key, int result);
///
/// 添加收藏
///
///
/// 收藏对象结构(
///
///
public static extern int WXFavAddItem(int objects, string fav_object, int result);
///
/// 获取收藏对象的详细信息
///
///
/// 收藏对象id
///
///
public static extern int WXFavGetItem(int objects, int id, int result);
///
/// 删除收藏对象
///
///
/// 收藏对象id
///
///
public static extern int WXFavDeleteItem(int objects, int id, int result);
///
/// 获取所有标签列表
///
///
///
///
public static extern int WXGetContactLabelList(int objects, int result);
///
/// 添加标签
///
///
/// 标签内容
///
public static extern int WXAddContactLabel(int objects, string label, int result);
///
/// 从列表删除标签
///
///
/// 标签id
///
///
public static extern int WXDeleteContactLabel(int objects, string id, int result);
///
/// 设置用户标签
///
///
/// 用户名
/// 标签id
///
///
public static extern int WXSetContactLabel(int objects, string user, string id, int result);
///
/// 分享名片
///
/// 接口指针对象WxUser
/// 对方用户名
/// 微信ID
/// 标题
///
public static extern int WXShareCard(int objects, string user, string wxid, string title, int result);
///
/// 执行公众号菜单
///
///
/// 公众号用户名gh* 开头的
/// 通过WXGetSubscriptionInfo获取
/// 通过WXGetSubscriptionInfo获取
///
///
public static extern int WXSubscriptionCommand(int objects, string user, UInt32 id, string key, int result);
///
/// 访问/阅读url
///
///
/// 访问的链接
/// token中的key
/// token中的uin
///
///
public static extern int WXRequestUrl(int objects, string url, string key, string uin, int result);
///
/// 重置同步信息
///
/// 接口指针对象WxUser
///
public static extern int WXSyncReset(int objects);
///
/// 添加群成员
///
/// 接口指针对象WxUser
/// 群用户名
/// 成员用户名
/// 二级指针,返回执行结果
///
public static extern int WXAddChatRoomMember(int objects, string chatroom, string user, int result);
///
/// 创建群
///
/// 接口指针对象WxUser
/// 用户名json数组,例如["wxid_g58r112lnw0q22","my26259675"]
/// 二级指针,返回执行结果
///
public static extern int WXCreateChatRoom(int objects, string user, int result);
///
/// 邀请群成员
///
/// 接口指针对象WxUser
/// 群用户名
/// 成员用户名
/// 二级指针,返回执行结果
///
public static extern int WXInviteChatRoomMember(int objects, string chatroom, string user, int result);
///
/// 获取二维码信息
///
///
/// 本地二维码图片全路径
///
///
public static extern int WXQRCodeDecode(int objects, string path, int result);
///
/// 获取其他设备登陆请求
///
///
/// 通过二维码扫描获取的url
///
///
public static extern int WXExtDeviceLoginGet(int objects, string login_url, int result);
///
/// 确认其他设备登陆请求
///
///
/// 通过二维码扫描获取的url
///
///
public static extern int WXExtDeviceLoginOK(int objects, string login_url, int result);
///
/// 发送语音消息
///
/// 接口对象指针
/// 接收目标
/// 语音数据
/// 语音大小
/// 语音时间(毫秒,最大60 * 1000)
///
///
public static extern int WXSendVoice(int objects, string toUser, byte[] voice_data, int voice_size, int voice_time, int result);
///
/// 设置个人信息
///
///
/// 昵称
/// 签名
/// 性别,1男,2女
/// 国家,CN
/// 地区,省,Zhejiang
/// 城市,Hangzhou
/// 二级指针,返回执行结果
///
public static extern int WXSetUserInfo(int objects, string nick_name, string unsigned, int sex, string country, string provincia, string city, int result);
///
/// 初始化接口(对象)
///
/// 接口对象二级指针,分配一个对象
/// 格式 xxxx 的ipad
/// 格式
///
/// 9.0.2iPad2
/// 58BF17B5-2D8E-4BFB-A97E-38F1226F13F8710DECBB-7176-4E50-83D3-C24BA2070356
/// neihe_5GHz(null)
/// 94:10:3e:8e:8:43\345\276\256\344\277\241
/// 11
/// com.tencent.xin
/// iPad4,4
///
///
/// 格式 以上面k20一致 710DECBB-7176-4E50-83D3-C24BA2070356
///
public static extern int WXInitialize(int objects, string device_name, string device_type, string device_uuid);
///
/// 获取扫码登录二维码
///
///
///
///
public static extern int WXGetQRCode(int objects, int result);
///
/// 设置http服务地址相关信息
///
///
/// 服务地址
/// 开发者相关信息{"code":"123456"}
/// 超时时间
///
///
public static extern int WXSetHttpServer(int objects, string server, string sign, int timeout, int result);
///
/// 获取群成员资料
///
///
/// 群ID
///
///
public static extern int WXGetChatRoomMember(int objects, string chatroom, int result);
///
/// 检查二维码状态 //需循环调用
///
///
///
///
public static extern int WXCheckQRCode(int objects, int result);
///
/// 二维码登陆
///
///
/// 用户名
/// 二维码验证密码
///
///
public static extern int WXQRCodeLogin(int objects, string user, string password, int result);
///
/// 帐户注销
///
///
///
///
public static extern int WXLogout(int objects, int result);
///
/// 同步包含通讯录及微信消息,不要与WXSyncMessage一起使用
///
///
///
///
public static extern int WXSyncMsg(int objects, int result);
///
/// 只同步聊天信息,,不要与WXSyncMsg一起使用
///
///
///
///
public static extern int WXSyncMessage(int objects, int result);
///
/// 只同步通讯录信息
///
///
///
///
public static extern int WXSyncContact(int objects, int result);
///
/// 释放内存,使用一个函数后将接收返回值的指针做初始化释放内存
///
///
///
public static extern int WXRelease(int result);
///
/// 设置接收消息通知回调函数
///
/// 接口指针对象WxUser
/// 回调函数指针
public static extern void WXSetRecvMsgCallBack(int objects, DllcallBack sync_msg_cb);
///
/// 朋友圈图片上传
///
/// 接口指针对象WxUser
/// 回调函数指针
public static extern void WXSnsUpload(int objects, byte[] image_data,int image_size,int result);
///
/// 接口对象释放
///
///
public static extern void WXObjectRelease(int objects);
///
/// 设置同步消息回调函数
///
///
///
public static extern void WXSetSyncMsgCallBack(int objects,int sync_msg_cb);
///
/// 获取朋友圈动态
///
///
///
///
public static extern void WXSnsTimeline(int objects,string id,int result);
///
/// 验证密码
///
///
///
///
public static extern void WXVerifyPassword(int objects, string password, int result);
///
/// 设置密码
///
///
///
///
public static extern void WXSetPassword(int objects, string password, int result);
///
/// 设置微信ID
///
///
///
///
public static extern void WXSetWeChatID(int objects, string id, int result);
///
/// 踢出群成员
///
///
///
///
///
public static extern void WXDeleteChatRoomMember(int objects, string chatroomid, int wxid,int result);
///
/// 退群
///
///
///
///
public static extern void WXQuitChatRoom(int objects, string chatroomid, int result);
///
/// 设置备注
///
///
///
///
///
public static extern void WXSetUserRemark(int objects, string wxid,string signature, int result);
///
/// 获取消息图片
///
///
///
///
///
public static extern void WXGetMsgImage(int objects, string msg, int result);
///
/// 获取消息视频
///
///
///
///
///
public static extern void WXGetMsgVideo(int objects, string msg, int result);
///
/// 取群二维码
///
///
///
/// 是否使用风格化二维码
///
public static extern void WXGetUserQRCode(int objects, string chatroomid,int style, int result);
///
/// 修改群名称
///
///
///
///
///
public static extern void WXSetChatroomName(int objects, string chatroomid, string comment, int result);
///
/// 修改群公告
///
///
///
///
///
public static extern void WXSetChatroomAnnouncement(int objects, string chatroomid, string comment, int result);
///
/// 朋友圈消息评论
///
///
///
///
///
///
///
public static extern void WXSnsComment(int objects, string wxid,string snsid, string comment,int reply_id, int result);
///
/// 登录验证处理
///
///
///
///
///
///
public static extern void WXLoginQuestion(int objects, string ticket, string cookies, string answer, int result);
///
/// 登陆验证问题处理
///
///
///
///
public static extern void WXLoginQuestionResult(int objects, string code, int result);
///
/// 同步朋友圈动态(好友评论或点赞自己朋友圈的消息)
///
///
///
///
public static extern void WXSnsSync(int objects, string key, int result);
///
/// 微信消息callback
///
///
///
public delegate void DllcallBack(int objects, int sync_msg_cb);