User Tools

Site Tools


enumerating_20serial_20ports

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
enumerating_20serial_20ports [2018/03/31 13:19] – external edit 127.0.0.1enumerating_20serial_20ports [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //by Richard Russell, May 2014//\\ \\  The program below uses Windows Management Instrumentation (WMI) to enumerate the serial I/O ports (if any):\\  //by Richard Russell, May 2014//\\ \\  The program below uses Windows Management Instrumentation (WMI) to enumerate the serial I/O ports (if any):\\ 
 +<code bb4w>
         INSTALL @lib$+"COMLIB"         INSTALL @lib$+"COMLIB"
         PROC_cominitlcid(1033)         PROC_cominitlcid(1033)
Line 48: Line 49:
         PROC_comexit         PROC_comexit
         ENDPROC         ENDPROC
 +</code>
 As shown the code prints the **Caption** string for each port, but any of the other members of the [[http://msdn.microsoft.com/en-us/library/aa394413.aspx|Win32_SerialPort class]] could be extracted instead. As shown the code prints the **Caption** string for each port, but any of the other members of the [[http://msdn.microsoft.com/en-us/library/aa394413.aspx|Win32_SerialPort class]] could be extracted instead.
enumerating_20serial_20ports.1522502359.txt.gz · Last modified: 2024/01/05 00:17 (external edit)