C# 获取打印机
// 获取本地打印机列表
PrintQueueCollection printQueuesOnLocalServer = printServer.GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local });
// 获取本地打印机和网络共享打印机列表
PrintQueueCollection printList = printServer.GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections });