Public Declare Function CreateFile Lib "coredll.lib" (ByVal lpFileName As String, _
ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, ByRef lpSecurityAttributes As Long, _
ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, _
ByVal hTemplateFile As Integer) As Integer
Public Declare Function SetCommState Lib "coredll.lib" (ByVal hCommDev As Integer, ByRef lpDCB As Long) As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles base.Load