📄 unit4.~pas
字号:
//***********************************************
//WinIO的声明单元
//***********************************************
unit Unit4;
interface
function InstallWinIoDriver(const PathName: String; Flags: Boolean): Boolean; stdcall;
function InitializeWinIo():Boolean; stdcall;
function SetPortVal(PortAddr:Integer;PortVal:Integer;bSize:Byte):Boolean; stdcall;
function GetPortVal(PortAddr:Integer;pPortVal:dword;bSize:Byte):Boolean;stdcall;
procedure ShutdownWinIo; stdcall;
procedure RemoveWinIoDriver; stdcall;
implementation
function InstallWinIoDriver(const PathName: String; Flags: Boolean): Boolean;
external 'winio.dll' name 'InstallWinIoDriver'; stdcall;
function SetPortVal(PortAddr:Integer;PortVal:Integer;bSize:Byte):Boolean;
external 'winio.dll' name 'SetPortVal'; stdcall;
function GetPortVal(PortAddr:Integer;pPortVal:dword;bSize:Byte):Boolean;
external 'winio.dll' name 'GetPortVal'; stdcall;
function InitializeWinIo():Boolean;
external 'winio.dll' name 'InitializeWinIo'; stdcall;
procedure ShutdownWinIo;
external 'winio.dll' name 'ShutdownWinIo'; stdcall;
procedure RemoveWinIoDriver;
external 'winio.dll' name 'RemoveWinIoDriver'; stdcall;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -