Yi's Blog

## 手机重力感应控制电脑（二）

2013-06-02

WinIo:WinIo是一个可以完成读写端口操作的驱动程序组件。作者是这样介绍的：

The WinIo library allows 32-bit and 64-bit Windows applications to directly access I/O ports and physical memory

• InitializeWinIo;
• ShutdownWinIo;
• GetPortVal;
• SetPortVal;

64-bit versions of Windows only load device drivers that are signed by a code signing certificate issued by a public CA such as Verisign, Thawte, etc. WinIo64.sys must not be deployed on production machines unless a code signing certificate is obtained and used to sign this file. The bundled copy of WinIo64.sys is signed with a self-signed certificate and can only be used on development/test machines with Windows running in a special “test” mode.