Windows equivalent of inb(), outb(), low level i/o

前端 未结 3 580
眼角桃花
眼角桃花 2021-01-15 22:32

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 f

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-15 22:54

    The default protection level for I/O ports in Windows prevents a user-mode program from using inp and out instructions on any port. Your program will die with a GPF. There are several freely available drivers around that change that protection level so that ring 3 code can access the ports. Which is okay if you're interested in killer pokes.

    The canonical one is inpout32.

提交回复
热议问题