コード例 #1
0
ファイル: DnsMsServer.cs プロジェクト: maxsnts/XwMaxLib
        //******************************************************************************************************
        private string GetDNSServerName()
        {
            ManagementObject oServer = wmi.GetObject("MicrosoftDNS_Server.Name=\".\"");

            return(oServer["Name"] as string);
        }