User Tools

Site Tools


enumerating_20serial_20ports

Differences

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

Link to this comparison view

enumerating_20serial_20ports [2018/03/31 13:19]
127.0.0.1 external edit
enumerating_20serial_20ports [2018/04/17 16:04] (current)
tbest3112 Added syntax highlighting
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.txt ยท Last modified: 2018/04/17 16:04 by tbest3112