How to get friendly device name from DEV_BROADCAST_DEVICEINTERFACE and Device Instance ID

Well, as noted above I found out how to get dbcc_name to populate correctly. I found that this was the easiest way to get the device name: private static string GetDeviceName(DEV_BROADCAST_DEVICEINTERFACE dvi) { string[] Parts = dvi.dbcc_name.Split(‘#’); if (Parts.Length >= 3) { string DevType = Parts[0].Substring(Parts[0].IndexOf(@”?\”) + 2); string DeviceInstanceId = Parts[1]; string DeviceUniqueID = … Read more