easypod.bas

来自「Megawin Full Speed USB基於HID類別的WINDOWS控制源」· BAS 代码 · 共 19 行

BAS
19
字号
Attribute VB_Name = "Module1"

Public Type MW_EasyPOD
    VID As Long
    PID As Long
    ReadTimeOut As Long
    WriteTimeOut As Long
    Handle As Long              ' Do not modify this value, reserved for DLL
    FeatureReportSize As Long   ' Do not modify this value, reserved for DLL
    InputReportSize As Long     ' Do not modify this value, reserved for DLL
    OutputReportSize As Long    ' Do not modify this value, reserved for DLL
End Type

Public Declare Function ConnectPOD Lib "EasyPOD.DLL" (ByRef m_EasyPod As MW_EasyPOD, ByVal Index As Long) As Long
Public Declare Function DisconnectPOD Lib "EasyPOD.DLL" (ByRef m_EasyPod As MW_EasyPOD) As Long
Public Declare Function WriteData Lib "EasyPOD.DLL" (ByRef m_EasyPod As MW_EasyPOD, lpString As Byte, ByVal lToWrite As Long, lWritten As Long) As Long
Public Declare Function ReadData Lib "EasyPOD.DLL" (ByRef m_EasyPod As MW_EasyPOD, lpString As Byte, ByVal lToRead As Long, lRead As Long) As Long

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?