Find the COM ports
Using API from Kernel32, this code will show you information about the serial or COM ports on the local computer. Module Option Explicit ‘API DeclarationsPublic Declare Function CreateFile Lib “kernel32.dll” Alias “CreateFileA” (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As… Read More »