Device enrolment with no model information

An exception was previously thrown when a device lacking
manufacturer/model information attempted to enrol.
This commit is contained in:
Gary Sharp
2016-11-09 15:43:44 +11:00
parent c72c18e825
commit afa548fb70
3 changed files with 42 additions and 9 deletions
+12 -1
View File
@@ -59,6 +59,10 @@ namespace Disco.Client.Interop
// Ignore
// Indicates 'Wlanapi.dll' isn't present (ie. Servers)
}
catch (Exception ex)
{
throw new Exception("Disco Client was unable to retrieve Wireless NetworkAdapter information from WlanApi", ex);
}
}
public static List<WirelessProfile> GetWirelessProfiles()
@@ -96,6 +100,10 @@ namespace Disco.Client.Interop
// Indicates 'Wlanapi.dll' isn't present (ie. Servers)
return null;
}
catch (Exception ex)
{
throw new Exception("Disco Client was unable to retrieve Wireless Profiles from WlanApi", ex);
}
}
private static List<WirelessProfile> GetWirelessProfiles(IntPtr wlanHandle)
@@ -346,7 +354,10 @@ namespace Disco.Client.Interop
// Indicates 'Wlanapi.dll' isn't present (ie. Servers)
// Ignore policies
}
catch (Exception ex)
{
throw new Exception("Disco Client was unable to apply Wireless Profile Changes using WlanApi", ex);
}
}
public static string Description(this WLAN_INTERFACE_STATE State)