Пример #1
0
        public string GetFriendlyDeviceInterfaceName()
        {
            if (PropStore == null)
            {
                GetPropertyInformation();
            }

            if (PropStore.Contains(PropertyKeys.PKEY_DeviceInterface_FriendlyName))
            {
                return (string)PropStore[PropertyKeys.PKEY_DeviceInterface_FriendlyName].Value;
            }
            return "Unknown";
        }