Attribute VB_Name = "basPComControlActiveX"
'*****************************************************************************
'        Copyright (c) 2008 Panasonic Communications Co., Ltd.
'
'        basPComControlActiveX.bas -- PCCAx.dll を使うための標準モジュール
'
'        2007.12.05    パナソニック コミュニケーションズ株式会社
'
'*****************************************************************************


' DLL-定数 定義宣言
Public Const RET_PCX_SUCCESS                As Integer = 0
Public Const RET_PCX_EVENT_SUCCESS          As Integer = 1
Public Const RET_PCX_ACK                    As Integer = 2
Public Const RET_PCX_NAK                    As Integer = 3
Public Const RET_PCX_RESPONSE               As Integer = 10
Public Const RET_PCX_READY                  As Integer = 11
Public Const RET_PCX_BUSY                   As Integer = 12
Public Const RET_PCX_CANCELED               As Integer = 20
Public Const RET_PCX_FAILURE                As Integer = 30

Public Const RET_PCX_ERR_PARAM              As Integer = 100
Public Const RET_PCX_ERR_PORT               As Integer = 101
Public Const RET_PCX_ERR_RES_TIMEOUT        As Integer = 110
Public Const RET_PCX_ERR_CTS_TIMEOUT        As Integer = 111
Public Const RET_PCX_ERR_DSR_TIMEOUT        As Integer = 112
Public Const RET_PCX_ERR_BUSY_TIMEOUT       As Integer = 113
Public Const RET_PCX_ERR_BCC_RETRY          As Integer = 120
Public Const RET_PCX_ERR_BUFFEROVER         As Integer = 130
Public Const RET_PCX_ERR_BUSY               As Integer = 140

Public Const RET_PCX_ERR_COMM_WRITE         As Integer = 200
Public Const RET_PCX_ERR_COMM_READ          As Integer = 201

' イベント定数 定義
Public Const EVT_PCX_RELEASE                As Long = &H0&
Public Const EVT_PCX_RXCHAR                 As Long = &H1&
Public Const EVT_PCX_TXEMPTY                As Long = &H2&
Public Const EVT_PCX_ERR_BUFFER_OVERFLOW    As Long = &H4&
Public Const EVT_PCX_CTS                    As Long = &H8&
Public Const EVT_PCX_DSR                    As Long = &H10&
Public Const EVT_PCX_RLSD                   As Long = &H20&
Public Const EVT_PCX_BREAK                  As Long = &H40&
Public Const EVT_PCX_RING                   As Long = &H100&
Public Const EVT_PCX_ERR_FRAME              As Long = &H200&
Public Const EVT_PCX_ERR_OVERRUN            As Long = &H400&
Public Const EVT_PCX_ERR_PARITY             As Long = &H800&
Public Const EVT_PCX_ALL                    As Long = &HFFFFFFFF

