CommMonitor8.0 串口过滤驱动 SDK DLL版本 C#/Delphi调用DEMO
CommMonitor8.0 SDK DLL 版本,此版本是直接调用DLL。
Delphi调用定义:
const
CommMOnitor8x = ‘CommMOnitor8x.dll’;
type
TOnMonitorL = procedure(
seq: DWORD; //序号
dt: DWORD; //时间
ctrl: DWORD; //控制码
PID: DWORD; //进程ID
comNum: PAnsiChar; //串口号
size: DWORD; //数据大小
vtASC: PAnsiChar //ASCII
); stdcall;
function StartMonitor(cKey, cPortName: PAnsiChar; funcCallback: TOnMonitorL): BOOL; stdcall; external CommMOnitor8x;
function StopMonitor(): BOOL; stdcall; external CommMOnitor8x;
function PauseMonitor(bPause: BOOL): BOOL; stdcall; external CommMOnitor8x;
procedure About(Handle: DWORD); stdcall; external CommMOnitor8x;
VS C#调用定义:
[DllImport(“CommMonitor8x.dll”,
CharSet = System.Runtime.InteropServices.CharSet.Ansi,
CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall,
EntryPoint = “StartMonitor”)]
public static extern bool StartMonitor(string key, string comName, IntPtr onMonitor);
[DllImport(“CommMonitor8x.dll”, CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, EntryPoint = “About”)]
public static extern void About(IntPtr Handle);
[DllImport(“CommMonitor8x.dll”, CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, EntryPoint = “StopMonitor”)]
public static extern bool StopMonitor();
[DllImport(“CommMonitor8x.dll”, CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, EntryPoint = “PauseMonitor”)]
public static extern bool PauseMonitor(bool bPause);
public delegate void OnMonitor(
uint seq, //序号
uint dt, //时间
uint dwCtrlCode, //控制码
uint PID, //进程ID
string sPortName, //串口号
uint dwSize, //数据大小
string vtASC //ASCII
);
Delphi、C#调用,请参看DEMO。
来源:http://www.ceiwei.com/blog/index.php/2017/11/17/commmonitor8-0-sdk-dll_ver/
CommMonitor8.0 串口过滤驱动 SDK DLL版本 C#/Delphi调用DEMO的更多相关文章
- .net DLL 注册 regasm delphi调用
.net DLL 注册 regasm regasm regasm myTest.dll regasm.exe 打开vs2005自带的工具“Visual Studio 2005命令提示”,输入上述命令 ...
- CEIWEI CommMonitor 串口监控精灵11.0 SDK/OCX 串口过滤驱动
CommMonitorX 监视精灵SDK,能够嵌入到你的App程序中,从而在你的App中实现串行端口分析.调试串行设备的协议信息,并可以拦截.记录串行端口程序操作串口的TX.Rx数据包.串口置信息如波 ...
- CEIWEI CommMonitor 串口监控精灵v11.0 串口过滤 串口监控
CEIWEI CommMonitor 串行端口监控精灵是用于 RS232 / RS422 / RS485 端口监控的专业 强大的系统实用程序软件.CEIWEI CommMonitor 监控显示, ...
- 地图SDK全新版本v4.3.0上线 - 新增多项功能及优化
以下内容转载自腾讯位置服务公众号的文章<地图SDK全新版本v4.3.0上线 - 新增多项功能及优化!> 作者:腾讯位置服务 链接:https://mp.weixin.qq.com/s/hb ...
- ------- 软件调试——注销 QQ 过滤驱动设置的事件通知 CallBack (完)-------
---------------------------------------------------------------------------------- 本系列的最后一篇演示如何通过调试手 ...
- Windows内核开发之串口过滤
学习了几个月的内核编程,现在对Windows驱动开发又了更加深入的认识,特别是对IRP的分层处理逻辑有了深入认识. 总结起来就几句话: 当irp下来的时候,你要根据实际情况,进行处理 1> 无处 ...
- (转)支持 PS/2 与 USB 的键盘过滤驱动(可卸载)
Author: sinisterEmail: sinister@whitecell.orgHomepage:http://www.whitecell.org Date: 2007-02-2 ...
- 转 Windows串口过滤驱动程序的开发
在Windows系统上与安全软件相关的驱动开发过程中,“过滤(filter)”是极其重要的一个概念.过滤是在不影响上层和下层接口的情况下,在Windows系统内核中加入新的层,从而不需要修改上层的软件 ...
- 海康SDK JAVA版本调用步骤及问题介绍
一.前言 本文为海康SDK JAVA版本Demo的介绍,采用Eclipse运行,以及一些问题记录. 海康SDK版本:SDK_Win32 Eclipse版本:Mars2.0 JDK版本:1.8.0_15 ...
随机推荐
- waitgroup等待退出
等待一组协程结束,用sync.WaitGroup操作 package main import ( "fmt" "sync" "time" ) ...
- 简单了解Web Workers API
1. 为什么使用Web Workers API 通过使用该API,web应用程序可以独立于主线程,运行一个单独的线程来处理脚本. 可以在独立的线程中解决耗时较长的任务,避免主线程阻塞. 2. 应用 1 ...
- MongoDB 查看存储引擎
需要登录到具体的主/从节点查询,mongos查询不到 db.serverStatus() 其中有这个 "storageEngine" : { "name" : ...
- 如何利用Wireshark解密SSL和TLS流量
如何利用Wireshark解密SSL和TLS流量https://support.citrix.com/article/CTX135121 1.有server端的private key,直接在wires ...
- Elasticsearch 索引文档的增删改查
利用Elasticsearch-head可以在界面上(http://127.0.0.1:9100/)对索引进行增删改查 1.RESTful接口使用方法 为了方便直观我们使用Head插件提供的接口进行演 ...
- 6、transformation和action1
一.transformation和action入门 1.介绍 Spark支持两种RDD操作:transformation和action.transformation操作会针对已有的RDD创建一个新的R ...
- Luogu5071 [Ynoi2015]此时此刻的光辉 【莫队】
题目链接:洛谷 这个跟上上个Ynoi题目是一样的套路,首先我们知道\(n=\prod p_i^{\alpha_i}\)时\(d(n)=\prod (\alpha_i+1)\). 首先对所有数分解质因数 ...
- 认识WebStorm-小程序框架wepy
WebStorm是一个功能强大的IDE,适用于JavaScript开发,适合使用Node.js进行复杂的客户端开发和服务器端开发. WebStorm具有对JavaScript,HTML, CSS及其现 ...
- python去掉字符串中重复字符的方法
If order does not matter, you can use foo = "mppmt" "".join(set(foo)) set() ...
- C++11多线程std::thread创建方式
//#include <cstdlib> //#include <cstdio> //#include <cstring> #include <string& ...