摘要: 1 #ifndef MYDLL_H 2 #define MYDLL_H 3 4 #ifdef DLL_IMPLEMENT_ 5 #define DLL_APL __declspec(dllexport) 6 #else 7 #define DLL_API __declspec(dllimport) 8 #endif 9 10 //导出函数接口 11 extern "C" 1... 阅读全文
posted @ 2017-06-11 19:21 Zhian_Chen1990 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 本文参考了网上的一篇文章“VC 2010下WinIo 3.0直接访问I/O端口”; 由于Windows的内核保护机制,我们无法直接对通过内核操作硬件,通过使用WinIo可以绕过这一限制,实现对Windows硬件端口或者地址的直接操作。实际操作中发现WinIo库既可以对普通的I/O端口进行操作,也可以 阅读全文
posted @ 2017-06-11 01:47 Zhian_Chen1990 阅读(7253) 评论(0) 推荐(0) 编辑