作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试写入端口 0x60 和 0x64,但没有成功。
德尔福代码:
procedure PortOut(IOport: WORD; Value: BYTE); assembler; register;
asm
XCHG DX,AX
OUT DX,AL
end;
在调用 PortOut 时,我得到一个 EPrivilege Privileged instruction 异常,因为 IN
和 OUT
可能只作为 Ring0 执行。
我想知道我如何获得我的应用程序的 Ring0 权限,或者我如何使用一些现有的外部库写入端口 0x60 和 0x64。
最佳答案
IO.DLL allows seamless port I/O operations for Windows 95/98/NT/2000/XP using the same library.
关于windows - 如何在 Windows XP 中写入 I/O 端口? (德尔福7),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2167579/
我是一名优秀的程序员,十分优秀!