按字读硬件端口 inport

VC/C++Builder 下定义原型:

WORD __stdcall inport(WORD port);

VC/C++Builder 下使用示例:

W = inport(port);

VB 下定义方式:

Declare Function DllInport Lib "ADCard.Dll" Alias "_inport@4" (ByVal Port As Integer) As Integer

VB 下使用示例:

W = DllInport(port);

Delphi 下定义方式

function inport(port:word):word; stdcall; external 'adcard.dll' name '_inport@4';

Delphi 下使用示例

W := inport(port);

功能及参数说明:

函数 inport() 按字从硬件端口读。此函数能避开 Windows 对硬件操作的限制。同样的函数在 IOTOOLS 、 RBHIO 也提供。