using System;
using System.Collections;
using System.Collections.Generic;
using System.Management;
using System.Net;
using System.Net.NetworkInformation;
using System.Text;
using System.Text.RegularExpressions;
class Utility
{
internal static String[] GetSearchList()
{
string Query = "SELECT DnsDomainSuffixSearchOrder FROM Win32_NetworkAdapterConfiguration";
ManagementObjectSearcher WMISearch = new ManagementObjectSearcher(Query);
foreach (ManagementObject SearchResult in WMISearch.Get())
{
if (SearchResult.GetPropertyValue("DNSDomainSuffixSearchOrder") != null)
{
return (string[])SearchResult.GetPropertyValue("DNSDomainSuffixSearchOrder");
}
}
returnnew string[] { "" };
}
}