Windows相当于inb(),outb(),低级别的i / o [英] Windows equivalent of inb(), outb(), low level i/o

查看:235
本文介绍了Windows相当于inb(),outb(),低级别的i / o的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些Linux代码通过使用inb(),outb(),inl()等低级i / o函数从主板收集温度,电压和风扇速度来监控我们的硬件。

I have some Linux code that monitors our hardware by collecting temperatures, voltages, and fan speeds, from the motherboard using inb(), outb(), inl(), etc. low level i/o functions.

我的挑战是将该代码移植到Windows下作为一个简单的控制台应用程序运行。但我很困惑Win32(或.NET)提供的功能允许我访问直接内存映射端口。

My challenge is to port that code over to run under Windows as a simple console app. But am puzzled in what functions Win32 (or .NET) provide that allow me permission to access direct memory mapped ports.

我不想编码系统驱动程序。

I don't want to code a system driver either.

我的Windows工具首选项是VS2008。 (fyi)

My Windows tool preference is VS2008. (fyi)

这可能吗?

推荐答案

嗯,之后通过一些试验和错误搜索,我发现有用的两个最有用的部分是:

Well, after much searching with some trial and error, the two most useful bits I found to be helpful are:

WinRing0 IO.DLL

他们几乎做同样的事情,不同的是你会发现的代码示例,以帮助你开始使用它们。

They pretty much do the same thing, the difference is the samples of code you will find to help you get started using them.

希望这对其他人有帮助。

Hope this helps for others.

这篇关于Windows相当于inb(),outb(),低级别的i / o的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆