06 2012 档案
摘要:网上打了很多方法都无效,以下方法在WIN7pro中测试可用:通过直接使用WMI来获取using System.Management;string query = string.Format("SELECT * from Win32_Printer ");var searcher = new ManagementObjectSearcher(query);var printers = searcher.Get();foreach(var printer in printers){ Console.WriteLine(printer.Properties["Name&
阅读全文