如果我运行下面的代码,我会得到:
PG_ID_N_1_NA_ID_1,
PG_ID_N_2_NA_ID_1,
PG_ID_N_3_NA_ID_1,
PG_ID_N_4_NA_ID_1
但是,我想做的是获取FriendlyName REG_SZ
每个键下的值。
RegistryKey r = Registry.LocalMachine;
r = r.OpenSubKey(@"SYSTEM\CurrentControlSet\Enum\{C641C770-FAAC-44ED-9C73-48D1B5E59200}\NDIS&VEN_1924&DEV_0803&SUBSYS_62271924", false);
foreach (string s in r.GetSubKeyNames())
{
Console.WriteLine(s);
}
r.Close();