C# Class lucidcode.LucidScribe.Plugin.TI.EZ430.PortName

Class to enumerate friendly names of com ports code taken from http://creativecodedesign.com/node/39 and refurbished
Exibir arquivo Open project: lucidcode/LucidScribe-Chronos-EZ430 Class Usage Examples

Public Methods

Method Description
BuildPortNameHash ( string oPortsToMap ) : Hashtable

Begins recursive registry enumeration

Private Methods

Method Description
Contains ( String Values, String Value ) : System.Boolean
MineRegistryForPortName ( string strStartKey, Hashtable oTargetMap, string oPortNamesToMatch ) : void

Recursively enumerates registry subkeys starting with strStartKey looking for "Device Parameters" subkey. If key is present, friendly port name is extracted.

Method Details

BuildPortNameHash() public static method

Begins recursive registry enumeration
public static BuildPortNameHash ( string oPortsToMap ) : Hashtable
oPortsToMap string array of port names (i.e. COM1, COM2, etc)
return System.Collections.Hashtable