Attribute VB_Name = "Module1"

Const USER_DEFINE_ERROR = &HE0000000
Const INSUFFICIENT_MOMORY_AVAILABLE = &HE0000001
Const HIDD_GETATTRIBUTES_FAIL = &HE0000002
Const CANNOT_FINDE_THE_DEVICE_SPECIFIED = &HE0000003
Const SEND_DEVICE_CHECKCODE_FAIL = &HE0000004
Const GET_DEVICE_CHECKCODE_FAIL = &HE0000005
Const CHECK_DEVICE_CHECKCODE_FAIL = &HE0000006
Const CALL_WRITE_DATA_TIMEOUT = &HE0000007
Const CALL_READ_DATA_TIMEOUT = &HE0000008
Const ALLOCATE_DEVICE_QUEUE_FAIL = &HE0000009
Const GET_INPUT_REPORT_SIZE_FAIL = &HE000000A
Const DELETE_INPUT_QUEUE_FAIL = &HE000000B
Const HIDD_GETPREPARSEDDATA_FAIL = &HE000000C
Const SET_INPUT_REPORT_SIZE_FAIL = &HE000000D

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
Public Declare Function ClearPODBuffer Lib "EasyPOD.DLL" (ByRef m_EasyPod As MW_EasyPOD) As Long
