在 ASP.NET Web 应用程序上通过互联网访问用户的 USB 连接外围设备/设备

发布于 2024-10-03 18:39:19 字数 129 浏览 0 评论 0原文

我想知道,是否可以使用 libUsbDotNet 库通过 C# 从 ASP.NET Web 应用程序控制最终用户的 USB 连接设备或外围设备?

换句话说,能够从网站控制USB设备的某些功能吗?

我认为那会很酷。

I was wondering, is it possible to take control of an end-user's USB-connected device or peripheral from an ASP.NET web application via C# with the libUsbDotNet library?

In other words, be able to control certain functions of USB devices from a website?

I would think that would be pretty cool.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你的往事 2024-10-10 18:39:19

您必须记住,浏览器正在努力阻止您这样做。

实际上,您必须编写一个 ActiveX 组件才能执行此类操作。

You've got to keep in mind that browser are working to keep you from doing this.

You would actually have to write an ActiveX Component, to be able to do something like this.

童话里做英雄 2024-10-10 18:39:19

不。出于多种原因。

回答“否”的最重要原因是该库在服务器上运行,而不是在客户端上运行。

一个更务实的原因是浏览器被设计为沙箱。创建一个 activeX 组件是解决这个问题的唯一现实方法,但技术和部署充满了复杂性,然后您必须考虑跨浏览器/平台对 activex 的有限支持。

no. for many reasons.

the most salient reason that 'no' is the answer to your question is that the lib runs on the server, not the client.

a more pragmatic reason is that browsers are engineered to be sandboxed. creating an activeX component is the only realistic way around this but the technology and deployment is fraught with complications and then you have to consider the limited support for activex across browser/platforms.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文