Enumerate Ports
Using the EnumPorts API, you can list the ports on a local or remote PC with this code. Module Option Explicit ‘API callsPrivate Declare Function EnumPorts Lib “winspool.drv” Alias “EnumPortsA” (ByVal pName As String, ByVal Level As Long, ByVal lpbPorts As Long, ByVal cbBuf As Long, pcbNeeded As Long, pcReturned As Long) As LongPrivate Declare Function lstrlenW Lib… Read More »