using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace IPADDemo.Util { public static class EUtils { #region 易语言 Utils 处理中文乱码 /// /// 发送文字朋友圈 /// /// /// /// [DllImport("EUtils.dll")] public static extern int ESendSNS(int wxuser, string str); /// /// 发送朋友圈图片 /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int ESendSNSImage(int wxuser, string xml, string context); /// /// 设置群公告 /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int ESetChatroomAnnouncement(int wxuser, string wxid, string context); /// /// 设置群名称 /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int ESetChatroomName(int wxuser, string wxid, string name); /// /// 发送名片 /// /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int EShareCarde(int wxuser, string wxid, string fromwxid, string caption); /// /// 朋友圈评论 /// /// /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int ESnsComment(int wxuser, string wxid, string snsid, string context, int replyid); /// /// 添加用户 /// /// /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int EAddUser(int wxuser, string v1, string v2, int type, string context); /// /// 设置备注 /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int ESetUserRemark(int wxuser, string wxid, string context); /// /// 打招呼 /// /// /// /// /// [DllImport("EUtils.dll")] public static extern int ESayHello(int wxuser, string v1, string context); /// /// 添加标签 /// /// /// /// [DllImport("EUtils.dll")] public static extern int EAddContactLabel(int wxuser, string context); /// /// 16进制转字符串 /// /// /// [DllImport("EUtils.dll")] public static extern string EStrToHex(string context); /// /// 字符串转16进制 /// /// /// [DllImport("EUtils.dll")] public static extern string EHexToStr(string context); #endregion } }