Attribute VB_Name = "Module1" Declare Function OPENCOM Lib "Port" (ByVal A$) As Integer Declare Sub CLOSECOM Lib "Port" () Declare Sub SENDBYTE Lib "Port" (ByVal b%) Declare Function READBYTE Lib "Port" () As Integer Declare Sub DTR Lib "Port" (ByVal b%) Declare Sub RTS Lib "Port" (ByVal b%) Declare Sub TXD Lib "Port" (ByVal b%) Declare Function CTS Lib "Port" () As Integer Declare Function DSR Lib "Port" () As Integer Declare Function RI Lib "Port" () As Integer Declare Function DCD Lib "Port" () As Integer Declare Sub DELAY Lib "Port" (ByVal b%) Declare Sub TIMEINIT Lib "Port" () Declare Sub TIMEINITUS Lib "Port" () Declare Function TIMEREAD Lib "Port" () As Long Declare Function TIMEREADUS Lib "Port" () As Long Declare Sub DELAYUS Lib "Port" (ByVal l As Long) Declare Sub REALTIME Lib "Port" (ByVal I As Boolean) Declare Sub OUTPORT Lib "Port" (ByVal A%, ByVal b%) Declare Function INPORT Lib "Port" (ByVal p%) As Integer Declare Function JOYX Lib "Port" () As Long Declare Function JOYY Lib "Port" () As Long Declare Function JOYZ Lib "Port" () As Long Declare Function JOYW Lib "Port" () As Long Declare Function JOYBUTTON Lib "Port" () As Integer Declare Function SOUNDSETRATE Lib "Port" (ByVal Rate%) As Integer Declare Function SOUNDGETRATE Lib "Port" () As Integer Declare Function SOUNDBUSY Lib "Port" () As Boolean Declare Function SOUNDIS Lib "Port" () As Boolean Declare Sub SOUNDIN Lib "Port" (ByVal Puffer$, ByVal Size%) Declare Sub SOUNDOUT Lib "Port" (ByVal Puffer$, ByVal Size%) Declare Function SOUNDGETBYTES Lib "Port" () As Integer Declare Function SOUNDSETBYTES Lib "Port" (ByVal b%) As Integer Declare Sub SOUNDCAPIN Lib "Port" () Declare Sub SOUNCAPDOUT Lib "Port" ()