按字节读硬件端口 inportbVC/C++Builder 下定义原型: WORD __stdcall inportb(WORD port); VC/C++Builder 下使用示例: B = inportb(port); VB 下定义方式: Declare Function DllInportB Lib "ADCard.Dll" Alias "_inportb@4" (ByVal Port As Integer) As Integer VB 下使用示例: B = DllInportB(port); Delphi 下定义方式 function inportb(port:word):word; stdcall; external 'adcard.dll' name '_inportb@4'; Delphi 下使用示例 B := inportb(port); 功能及参数说明: 函数 inportb() 按字节从硬件端口读。此函数能避开 Windows 对硬件操作的限制。同样的函数在 IOTOOLS 、 RBHIO 也提供。
|