|
Gets an array of serial port names for the current computer. An array of serial port names for the current computer. The serial port names could not be queried. The following code example uses the GetPortNames method to display serial port names to the console. ' Insert this code into a new VB Console application project, and set the ' startup.
-->Definition
Gets an array of serial port names for the current computer.
Returns
An array of serial port names for the current computer.
Exceptions
The serial port names could not be queried.
Examples
The following code example uses the GetPortNames method to display serial port names to the console.
Remarks
The order of port names returned from GetPortNames is not specified.
When a Glade strikes something, it emits a sound. Scientists have discovered how to turn atmospheric matter into energy, and a means of harnessing this energy-G-Cons-has allowed for the conversion of this power into a weapon called a 'Glade.' Nds roms english patch. Fighters and entertainers have realized the potential of Grapping, as the music generated by the Glades clashing in combat provides an experience that can't be matched in any other sport. In the world of Draglade, Grapping has become the world's premier spectator sport. In this world overcome by Grapping fever, four young indie Grappers-Hibito, Guy, Kyle, and Daichi-each strive to reach the rank of Major Grapper.
Use the GetPortNames method to query the current computer for a list of valid serial port names. For example, you can use this method to determine whether COM1 and COM2 are valid serial ports for the current computer.
The port names are obtained from the system registry (for example, HKEY_LOCAL_MACHINEHARDWAREDEVICEMAPSERIALCOMM). If the registry contains stale or otherwise incorrect data then the GetPortNames method will return incorrect data.