Azylee.Core 读取APP Processor(可读取App的CPU使用率) 读取进程CPU使用率(同名进程无法支持) 计算CPU占用率 计算CPU占用率(自动刷新TimeSpan) 读取APP占用内存(单位:KB) 启动最新版本程序 路径:程序版本文件夹路径 可执行文件名 查询是否有最新版本程序可以执行 路径:程序版本文件夹路径 可执行文件名 获取最新版本号 路径:程序版本文件夹路径 可执行文件名 客户端定居工具 判断是否已定居 定居路径 货物清单 定居 定居路径 货物清单 判断应用在当前系统实例下是否唯一(搭配 ApplicationAPI.Raise() 食用更佳) 当前登录用户是否为管理员 百万次执行时间:26947、28705、28244 ms 当前登录用户是否为管理员 百万次执行时间:8063、9097、9755 ms 设为开机启动 格式化[]数组个数 数组 要格式化为多少个 格式化[]数组个数 数组 默认值 要格式化为多少个 元素列表工具类 列表为空(null 或 count 等于 0) 元素类型 元素列表 列表至少有一个元素 元素类型 元素列表 列表至少有一个元素 RMB 的摘要说明。 转换人民币大小金额 金额 返回大写形式 一个重载,将字符串先转换成数字在调用CmycurD(decimal num) 用户输入的金额,字符串形式未转成decimal 日期格式转换工具 yyyy-MM-dd HH:mm:ss yyyyMMddHHmmss yyyy-MM-dd HH:mm:ss.fff 当月有多少天 获取时间戳 日期转换周 显示日期为周几 加密 要加密的 string 字符串 加密 要加密的 byte[] 数组 解密 要解密的 string 字符串 解密 要解密的 byte[] 数组 格式化密码 要格式化的密码 DESEnCode DES加密 DESDeCode DES解密 计算data的MD5值 计算byte数组的MD5值 计算文件的MD5值 转化byte数组为uint数组,数组长度为16的倍数 1、字符串转化为字节数组,每4个字节转化为一个uint,依次存储到uint数组 2、附加0x80作为最后一个字节 3、在uint数组最后位置记录文件字节长度信息 转化字符串为uint数组,数组长度为16的倍数 1、字符串转化为字节数组,每4个字节转化为一个uint,依次存储到uint数组 2、附加0x80作为最后一个字节 3、在uint数组最后位置记录文件字节长度信息 转化文件为uint数组,数组长度为16的倍数 1、读取文件字节信息,每4个字节转化为一个uint,依次存储到uint数组 2、附加0x80作为最后一个字节 3、在uint数组最后位置记录文件字节长度信息 对长度为16倍数的uint数组,执行md5数据摘要,输出md5信息 给一个字符串进行MD5加密 待加密字符串 加密后的字符串 标志枚举修改工具 弃用:效率太低 sa = sa | StatusAttributes.Join;//添加属性 sa = (sa | StatusAttributes.Share) ^ StatusAttributes.Share;//删除属性 //短GUID:e0a953c3ee6040eaa9fae2b667060e09 //转换短GUID:e0a953c3ee6040eaa9fae2b667060e09 //转换短GUID:e0a953c3ee6040eaa9fae2b667060e09 序列化模型到 byte 数组 [Serializable] 判断字符串 非null、""、空格(Not NullOrWhiteSpace) 判断字符串 非null、""(Not NullOrEmpty) 判断字符串 非null、""、空格(Not NullOrWhiteSpace) 判断字符串 非null、""(Not NullOrEmpty) 判断字符串为null或为空格 查看字符串包含字符(不区分大小写) 分割字符串 字符串中字符出现次数 根据通配符验证字符串 字符串 通配符:%和_ 使用指定字符替换字符串中换行符 计算机字节单位转换工具 自动格式化字节单位 自动格式化字节单位 根据单位换算 根据单位换算 窗体管理器 获取唯一窗体对象 设置所有窗体的背景色 文件更改通知 接受文件监控信息的事件委托 获取文件监控信息 文件更改监控已启动 创建文件监控类 启动文件监测 停止文件监测 获取文件特征码(MD5,SHA1) 计算文件的 MD5 值 要计算 MD5 值的文件名和路径 MD5 值16进制字符串 计算文件的 sha1 值 要计算 sha1 值的文件名和路径 sha1 值16进制字符串 计算文件的哈希值 要计算哈希值的文件名和路径 算法:sha1,md5 哈希值16进制字符串 计算哈希值 要计算哈希值的 Stream 算法:sha1,md5 哈希值字节数组 字节数组转换为16进制表示的字符串 文件压缩 压缩 解压缩 单文件压缩(生成的压缩包和第三方的解压软件兼容) 自定义多文件压缩(生成的压缩包和第三方的压缩文件解压不兼容) 文件列表 压缩包全路径 多文件压缩解压 压缩文件路径 解压目录 文件加密工具 文件加密 源文件 目标文件 加密密码 回调进度 是否覆盖已有目标文件 >0:操作成功(操作共计秒数) -11:要加密的文件不存在 -12:加密后的目标文件已存在 -404:未知错误,操作失败 文件解密 源文件 目标文件 解密密码 回调进度 是否覆盖已有目标文件 >0:操作成功(操作共计秒数) -11:要解密的文件不存在 -12:解密后的目标文件已存在 -20:文件类型不匹配 -30:文件头不长度不吻合 -90:解锁密码错误 -404:未知错误,操作失败 文件打包工具 文件打包 要打包的路径 打包后的文件 回调进度 覆盖打包后的文件(重复时) -11;//要打包的路径不存在 -12;//打包后的目标文件已存在 -13;//要打包的路径中没有文件 -14;//输出文件夹不存在 -404;//未知错误,操作失败 拆包 包文件路径 拆包到的目录 回调进度 覆盖拆包后的文件(重复时) -11; //要解包的文件不存在 -12;//要解包的目标文件夹已存在 -20;// 文件类型不匹配 -99;//未知错误,操作失败 获取文件类型的类型版本 如果文件类型不匹配,则返回null 解析打包文件文件列表 创建打包文件列表信息 文件操作工具 判断字符串是文件路径 获取文件(单层目录) 路径 通配符 获取目录下的所有文件 防止遇到($文件夹报错无法获取目录的错误) 获取文件(多个目录)(向下钻取所有目录) 路径(支持多个路径) 通配符(支持多个通配符) 删除文件 文件路径 删除文件(多个) 文件路径(支持多个文件路径) 获取文件的大小(字节数) 获取多个文件的大小(字节数) 获取文件大小(根据单位换算) B,KB,MB,GB 获取文件大小信息(自动适配)(如:1MB,10KB...) 获取文件的MD5特征码 获取多个文件的MD5特征码 Captcha 随机种子 验证码长度 验证码长度(默认为4) 验证码字符串 验证码字符串 是否加入小写字母 是否加入小写字母(不包括o) 是否加入大写字母 是否加入大写字母(不包括O) 字体大小 字体大小(默认为18) 字体颜色 字体颜色(默认为Blue) 字体类型 字体类型(默认为Verdana) 背景色 背景色(默认为AliceBlue) 前景噪点数量 前景噪点数量(默认为2) 随机码的旋转角度 随机码的旋转角度(默认为40度) 构造方法 得到验证码字符串 得到验证码图片 添加前景噪点 添加背景噪点 将 Image 保存到指定目录文件名的 Icon 转换Image为Icon 要转换为图标的Image对象 当image为null时是否返回null。false则抛空引用异常 生成缩略图 源图路径(物理路径) 缩略图路径(物理路径) 缩略图宽度 缩略图高度 生成缩略图的方式 旋转照片(根据Exif信息的方向) 屏幕捕获类 把当前屏幕捕获到位图对象中 目标设备的句柄 目标对象的左上角的X坐标 目标对象的左上角的X坐标 目标对象的矩形的宽度 目标对象的矩形的长度 源设备的句柄 源对象的左上角的X坐标 源对象的左上角的X坐标 光栅的操作值 屏幕捕获到位图对象中 压缩图片 将鼠标指针形状绘制到屏幕截图上 标准缩略图生成 原始图像 指定宽度 指定高度 缩略图模式 差值模式 平滑模式 获取所有节点名称(Section) 存放节点名称的内存地址,每个节点之间用\0分隔 内存大小(characters) Ini文件 内容的实际长度,为0表示没有内容,为nSize-2表示内存大小不够 获取某个指定节点(Section)中所有KEY和Value 节点名称 返回值的内存地址,每个之间用\0分隔 内存大小(characters) Ini文件 内容的实际长度,为0表示没有内容,为nSize-2表示内存大小不够 读取INI文件中指定的Key的值 节点名称。如果为null,则读取INI中所有节点名称,每个节点名称之间用\0分隔 Key名称。如果为null,则读取INI中指定节点中的所有KEY,每个KEY之间用\0分隔 读取失败时的默认值 读取的内容缓冲区,读取之后,多余的地方使用\0填充 内容缓冲区的长度 INI文件名 实际读取到的长度 将指定的键值对写到指定的节点,如果已经存在则替换。 节点,如果不存在此节点,则创建此节点 Item键值对,多个用\0分隔,形如key1=value1\0key2=value2 如果为string.Empty,则删除指定节点下的所有内容,保留节点 如果为null,则删除指定节点下的所有内容,并且删除该节点 INI文件 是否成功写入 将指定的键和值写到指定的节点,如果已经存在则替换 节点名称 键名称。如果为null,则删除指定的节点及其所有的项目 值内容。如果为null,则删除指定节点中指定的键。 INI文件 操作是否成功 读取INI文件中指定INI文件中的所有节点名称(Section) Ini文件 所有节点,没有内容返回string[0] 获取INI文件中指定节点(Section)中的所有条目(key=value形式) Ini文件 节点名称 指定节点中的所有项目,没有内容返回string[0] 获取INI文件中指定节点(Section)中的所有条目的Key列表 Ini文件 节点名称 如果没有内容,反回string[0] 在INI文件中,将指定的键值对写到指定的节点,如果已经存在则替换 INI文件 节点,如果不存在此节点,则创建此节点 键值对,多个用\0分隔,形如key1=value1\0key2=value2 在INI文件中,删除指定节点中的指定的键。 INI文件 节点 操作是否成功 在INI文件中,删除指定的节点。 INI文件 节点 操作是否成功 在INI文件中,删除指定节点中的所有内容。 INI文件 节点 操作是否成功 测试 文件目录工具类 创建文件目录(文件不存在则创建) 如果文件已存在,返回true 如果文件不存在,则创建文件,成功返回true,失败返回false 获取目录的父目录 获取目录下的目录(一层) 获取目录下所有目录(递归) 判断目录是否为磁盘 获取文件所在的目录 连接多个string构成目录 路径包含关系 -1:不存在包含关系 0:两个目录相同 1:path1 包含 path2(path1 大) 2:path2 包含 path1(path2 大) Log 输出工具 说明: 1、Log.AllocConsole();开启控制台 2、Log.FreeConsole();关闭控制台 3、Log.i("information");输出消息 获取输出颜色 输出类型 写出到控制台 类型 标记 消息 写出到日志文件 根据分类分配目录 清理过多的日志文件 输出 verbose (啰嗦信息) 消息 可选:标记 输出 Debug (调试信息) 消息 可选:标记 输出 Information (重要信息) 消息 可选:标记 输出 Warning (警告信息) 消息 可选:标记 输出 Error (错误信息) 消息 可选:标记 运行状态 日期时间 统计时长(单位:秒) 脱机时长(单位:秒) Cpu使用率 可用内存 可用系统盘容量 应用程序Cpu使用率 应用程序占用内存 写出资源配置信息 收集数据 写出运行时状态信息 清理过多的状态信息文件 验证IP地址格式 验证MAC地址格式 程序联网信息列表 网络流量计数器 开启网络流量监控 关闭网络流量监控 系统性能计数器每秒统计事件 整理数据包到所属的进程 获取所有网络连接并整理列表 清空并重置当前所有程序的连接数 整理TCP连接到所属的进程 整理UDP连接到所属的进程 整理计算程序网络流量 联网断网重启计划(应对断网或重连后网卡抓包报错造成的不准确) 上行数据流量 上行数据总流量 下行数据流量 下行数据总流量 启动流量监测 重启流量计数器 重置流量表数 停止流量监测 终结器 A class that intercepts IP packets on a specific interface. This class only works on Windows 2000 and higher. Initializes a new instance of the PacketMonitor class. The interface on which to listen for IP packets. The operating system does not support intercepting packets. Cleans up the unmanaged resources. Starts listening on the specified interface. An error occurs when trying to intercept IP packets. Stops listening on the specified interface. Called when the socket intercepts an IP packet. The asynchronous result. The interface used to intercept IP packets. An instance. The buffer used to store incoming IP packets. An array of bytes. Raises an event that indicates a new packet has arrived. The arrived . Holds all the listeners for the NewPacket event. Represents the method that will handle the NewPacket event. The that intercepted the . The newly arrived . The Network Control precedence designation is intended to be used within a network only. The actual use and control of that designation is up to each network. The Internetwork Control designation is intended for use by gateway control originators only. If the actual use of these precedence designations is of concern to a particular network, it is the responsibility of that network to control the access to, and use of, those precedence designations. The use of the Delay, Throughput, and Reliability indications may increase the cost (in some sense) of the service. In many networks better performance for one of these parameters is coupled with worse performance on another. The use of the Delay, Throughput, and Reliability indications may increase the cost (in some sense) of the service. In many networks better performance for one of these parameters is coupled with worse performance on another. The use of the Delay, Throughput, and Reliability indications may increase the cost (in some sense) of the service. In many networks better performance for one of these parameters is coupled with worse performance on another. This field indicates the next level protocol used in the data portion of the internet datagram. Represents an IP packet. Initializes a new version of the Packet class. The raw bytes of the IP packet. is a null reference (Nothing in Visual Basic). represents an invalid IP packet. The intercept time will be set to DateTime.Now. Initializes a new version of the Packet class. The raw bytes of the IP packet. The time when the IP packet was intercepted. is a null reference (Nothing in Visual Basic). represents an invalid IP packet. Gets the raw bytes of the IP packet. An array of bytes. Gets the time when the IP packet was intercepted. A value. Gets the version of the IP protocol used. A 32-bits signed integer. Gets the length of the IP header [in bytes]. A 32-bits signed integer. Gets the precedence parameter. A instance. Gets the delay parameter. A instance. Gets the throughput parameter. A instance. Gets the reliability parameter. A instance. Gets the total length of the IP packet. A 32-bits signed integer. Gets the identification number of the IP packet. A 32-bits signed integer. Gets the time-to-live [hop count] of the IP packet. A 32-bits signed integer. Gets the protocol of the IP packet. A instance. Gets the checksum of the IP packet. An array of two bytes. Gets the source address of the IP packet. An instance. Gets the destination address of the IP packet. An instance. Gets the source port of the packet. A 32-bits signed integer. This property will only return meaningful data if the IP packet encapsulates either a TCP or a UDP packet. If the IP address encapsulates a packet of another protocol, the returned source port will be set to minus one. Gets the destination port of the packet. A 32-bits signed integer. This property will only return meaningful data if the IP packet encapsulates either a TCP or a UDP packet. If the IP address encapsulates a packet of another protocol, the returned destination port will be set to minus one. Gets a string representation of the source. An instance. If the encapsulated packet is a TCP or UDP packet, the returned string will consist of the IP address and the port number. If the IP packet does not encapsulate a TCP or UDP packet, the returned string will consist of the IP address. Gets a string representation of the destination. An instance. If the encapsulated packet is a TCP or UDP packet, the returned string will consist of the IP address and the port number. If the IP packet does not encapsulate a TCP or UDP packet, the returned string will consist of the IP address. Returns a string representation of the Packet An instance of the class. Returns a string representation of the Packet true if the returned string should ony contain the raw bytes, false if the returned string should also contain a hexadecimal representation. An instance of the class. 创建进程 开始运行 判断进程是否存在 进程名 启动程序 文件路径 启动参数 启动进程(定制启动配置) 停止进程 进程名 停止当前进程 停止多个进程 停止超时进程 进程名(不含后缀) 文件路径(为空则不验证) 超时时间(单位:秒) 强制关闭超时进程 延时并关闭进程 根据PID获取InstanceName(不要用于性能计数器,#1..实例名会自动改变) 记录方法前置操作和后置操作 添加操作 执行类型 方法名 动作 执行方法 返回值 方法名 参数 Cache Data 获取CustomAttribute Value Attribute的子类型 头部标有CustomAttribute类的类型 取Attribute具体哪个属性值的匿名函数 返回Attribute的值,没有则返回null 获取CustomAttribute Value Attribute的子类型 头部标有CustomAttribute类的类型 取Attribute具体哪个属性值的匿名函数 field name或property name 返回Attribute的值,没有则返回null 缓存Attribute Value 缓存Collection Name Key Cache Data 获取CustomAttribute Value Attribute的子类型 头部标有CustomAttribute类的类型 取Attribute具体哪个属性值的匿名函数 返回Attribute的值,没有则返回null 获取CustomAttribute Value Attribute的子类型 头部标有CustomAttribute类的类型 取Attribute具体哪个属性值的匿名函数 field name或property name 返回Attribute的值,没有则返回null 缓存Attribute Value 缓存Collection Name Key 通过运行时间判断是否运行 已启动 已启动(Protect) 取消标志 任务循环间隔 设置任务间隔(0为不循环任务) 启动服务任务 提前干点啥 干点啥 完事儿干点啥 停止服务任务 Sleep(单位:秒) Sleep(单位:分) Sleep(单位:秒) Sleep(单位:分) 应用程序API 唤起进程窗口(搭配 AppUnique.IsUnique() 食用更佳) -测试无法唤起隐藏窗口,仅能唤起常规窗口 打开文件夹 打开路径并定位文件... 对于@"h:\Bleacher Report - Hardaway with the safe call ??.mp4" 这样的,explorer.exe /select,d:xxx不认,用API整它 文件绝对路径 The AllocateAndInitializeSid function allocates and initializes a security identifier (SID) with up to eight subauthorities. Pointer to a SID_IDENTIFIER_AUTHORITY structure, giving the top-level identifier authority value to set in the SID. Specifies the number of subauthorities to place in the SID. This parameter also identifies how many of the subauthority parameters have meaningful values. This parameter must contain a value from 1 to 8. Subauthority value to place in the SID. Subauthority value to place in the SID. Subauthority value to place in the SID. Subauthority value to place in the SID. Subauthority value to place in the SID. Subauthority value to place in the SID. Subauthority value to place in the SID. Subauthority value to place in the SID. Pointer to a variable that receives the pointer to the allocated and initialized SID structure. If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. The CheckTokenMembership function determines whether a specified SID is enabled in an access token. Handle to an access token. The handle must have TOKEN_QUERY access to the token. The token must be an impersonation token. Pointer to a SID structure. The CheckTokenMembership function checks for the presence of this SID in the user and group SIDs of the access token. Pointer to a variable that receives the results of the check. If the SID is present and has the SE_GROUP_ENABLED attribute, IsMember returns TRUE; otherwise, it returns FALSE. If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. The FreeSid function frees a security identifier (SID) previously allocated by using the AllocateAndInitializeSid function. Pointer to the SID structure to free. This function does not return a value. 阻止系统休眠 阻止息屏 恢复系统休眠和息屏 重置系统休眠计时器 阻止息屏 获取计算机无操作时间 获取当前窗口句柄 显示窗口 0关闭 1正常显示 2最小化 3最大化 获取窗口大小 获取窗口所在进程ID 获取窗体标题 当前窗口标题 当前窗口进程名 注册热键 要定义热键的窗口的句柄 定义热键ID(不能与其它ID重复)  标识热键是否在按Alt、Ctrl、Shift、Windows等键时才会生效 定义热键的内容 删除热键 要取消热键的窗口的句柄 要取消热键的ID 设置剪贴板的文本内容 文本内容 获取剪贴板中的文本内容 返回剪贴板文本 获取剪贴板位图格式数据 位图 根据端口号查询列表,过滤pid0(item1:端口、item2:pid) 端口号 模糊匹配 查询列表(item1:端口、item2:pid) 查询内容 创建cmd的进程 开始运行CMD命令 输出动作 运行CMD并读取结果(建议执行返回数据较小的命令) 键盘钩子 [以下代码来自某网友,并非本人原创] 测试发现有问题,暂不使用 Default constructor - starts hooks automatically 计算机信息 CPU 信息 【序列号、型号】 网卡信息 【名称、描述、物理地址(Mac)、Ip地址、网关地址】 显卡型号 【型号、RAM】 声卡型号 内存型号 物理内存(单位:KB) 可用物理内存(单位:KB) 硬盘信息 【序列号、型号】 计算机名 主板信息 【制造商、型号、序列号】 操作系统信息 【系统名称、系统路劲、安装时间】 系统类型 当前用户名 当前用户名 所有用户名称 域名 系统启动后的毫秒数 处理器数 平台标识和版本号 64位操作系统 获取系统盘总容量(单位:KB) 获取系统盘可用容量(单位:KB) 获取磁盘上次格式化时间 获取计算机共享文件 获取 Processor(可获取CPU使用率) 获取网卡信息 【名称、描述、物理地址(Mac)、Ip地址、网关地址】 获取网卡实例名称 获取本机IPv4的IP地址 获取本机IPv4的IP地址 全小写MAC地址 格式化MAC地址(大写、':' 分割) 软件名称 软件版本 开发商 帮助链接 介绍链接 空间占用 安装日期 存在控制面板 存在进程 存在文件 存在注册表项 注册表操作工具 添加注册表值 读取注册表值 删除注册表值 分离注册表根目录和子目录 打开注册表相应目录 目标子项 是否具有写权限 创建或打开注册表相应目录 目标子项