是否有可能从身体上的不同虚拟打印机? [英] Is there a possibility to differ virtual printer from physical one?

查看:178
本文介绍了是否有可能从身体上的不同虚拟打印机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WinXP中所有可用的打印机列表。我需要code(最好.NET)来过滤掉从这个列表中的所有虚拟打印机。是否有可能呢?我分析Win32_Printer WMI类的所有属性,但看不到任何合适的一个。请大家帮帮忙。

I have a list of all printers available in WinXP. I need the code (ideally .NET) to filter out all the virtual printers from this list. Is it possible to do? I analyzed all the properties of Win32_Printer wmi class but can't see any suitable one. Please help.

推荐答案

我不认为这是可能的,至少有把握。虚拟打印机的整点是模仿一个真实的尽可能接近,所以任何差异,你可以找出基本上只是错误的虚拟打印机。

I don't think it's possible, at least with any certainty. The whole point of a virtual printer is to imitate a real one as closely as possible, so any differences you can identify are basically just bugs in the virtual printer.

这是说,你可以的根据端口名称部分的猜测。只是一对夫妇的例子,一个端口名称,其中包括一个IP地址,或以USB很可能是指一个物理连接。

That said, you can make some guesses based on the PortName. Just for a couple of examples, a PortName that includes an IP address or starts with "USB" is likely to refer to a physical connection.

这篇关于是否有可能从身体上的不同虚拟打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆