Kp
This commit is contained in:
@@ -186,7 +186,14 @@ namespace NetMonitorUtils
|
|||||||
Dictionary<String, String> ret = new Dictionary<String, String>();
|
Dictionary<String, String> ret = new Dictionary<String, String>();
|
||||||
foreach (string adapter in adapters)
|
foreach (string adapter in adapters)
|
||||||
{
|
{
|
||||||
String data = this.serviceController.NetworkGetName(adapter);
|
String data = "";
|
||||||
|
try {
|
||||||
|
data = this.serviceController.NetworkGetName(adapter);
|
||||||
|
} catch(NetMonitorUtils.Execptions.ServiceControlException e) {
|
||||||
|
data = "unknown";
|
||||||
|
this.addLog("NetworkSetter.getNetwork", e.Message, LogLevel.Error);
|
||||||
|
}
|
||||||
|
|
||||||
if (data == "unknown")
|
if (data == "unknown")
|
||||||
{
|
{
|
||||||
ret.Add(adapter, "unknown");
|
ret.Add(adapter, "unknown");
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user