Option Strict Off
Option Explicit On
Module basPComControlActiveX
	'*****************************************************************************
	'        Copyright (c) 2008 Panasonic Communications Co., Ltd.
	'
	'        basPComControlActiveX.bas -- PCCAx.dll を使うための標準モジュール
	'
	'        2007.12.05    パナソニック コミュニケーションズ株式会社
	'
	'*****************************************************************************
	
	
	' DLL-定数 定義宣言
	Public Const RET_PCX_SUCCESS As Short = 0
    Public Const RET_PCX_EVENT_SUCCESS As Short = 1
    Public Const RET_PCX_ACK As Short = 2
    Public Const RET_PCX_NAK As Short = 3
    Public Const RET_PCX_RESPONSE As Short = 10
    Public Const RET_PCX_READY As Short = 11
    Public Const RET_PCX_BUSY As Short = 12
    Public Const RET_PCX_CANCELED As Short = 20
    Public Const RET_PCX_FAILURE As Short = 30

    Public Const RET_PCX_ERR_PARAM As Short = 100
	Public Const RET_PCX_ERR_PORT As Short = 101
	Public Const RET_PCX_ERR_RES_TIMEOUT As Short = 110
	Public Const RET_PCX_ERR_CTS_TIMEOUT As Short = 111
	Public Const RET_PCX_ERR_DSR_TIMEOUT As Short = 112
	Public Const RET_PCX_ERR_BUSY_TIMEOUT As Short = 113
	Public Const RET_PCX_ERR_BCC_RETRY As Short = 120
	Public Const RET_PCX_ERR_BUFFEROVER As Short = 130
	Public Const RET_PCX_ERR_BUSY As Short = 140
	
	Public Const RET_PCX_ERR_COMM_WRITE As Short = 200
	Public Const RET_PCX_ERR_COMM_READ As Short = 201
	
	' イベント定数 定義
	Public Const EVT_PCX_RELEASE As Integer = &H0
	Public Const EVT_PCX_RXCHAR As Integer = &H1
	Public Const EVT_PCX_TXEMPTY As Integer = &H2
	Public Const EVT_PCX_ERR_BUFFER_OVERFLOW As Integer = &H4
	Public Const EVT_PCX_CTS As Integer = &H8
	Public Const EVT_PCX_DSR As Integer = &H10
	Public Const EVT_PCX_RLSD As Integer = &H20
	Public Const EVT_PCX_BREAK As Integer = &H40
	Public Const EVT_PCX_RING As Integer = &H100
	Public Const EVT_PCX_ERR_FRAME As Integer = &H200
	Public Const EVT_PCX_ERR_OVERRUN As Integer = &H400
	Public Const EVT_PCX_ERR_PARITY As Integer = &H800
	Public Const EVT_PCX_ALL As Integer = &HFFFFFFFF
End Module