如何提取打印机或设备图标

发布于 2024-12-28 02:14:58 字数 303 浏览 1 评论 0原文

我试图弄清楚如何获取与已安装的打印机或设备关联的图标。例如,在 Windows 7 上,如果您转到“设备和打印机”对话框,您将看到打印机、鼠标、HDD、显示器等的列表。所有这些都分配有图标。我如何使用 C# 检索这些图标。如果我需要的话,P/Invoke 就可以了。

这与 我可以获取吗通过 .Net 与已安装的打印机关联的图标?

I am trying to figure out how to get the icon that is associated with an installed printer or device. For example, on Windows 7 if you goto the Devices and Printers dialog you will see a list of printers, mouses, HDDs, monitors, etc. All of these have icons assigned to them. How do I go about retrieving those icons using C#. P/Invoke is fine if I need to.

This is not duplicate of Can I get the icon associated with an installed printer through .Net?.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文