查找USB设备(如pendrive)的状态 [英] Finding Out Status of a USB Device ,like pendrive

查看:77
本文介绍了查找USB设备(如pendrive)的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,我正在研究一个项目(在C#的窗口应用程序中),在该项目中我需要了解USB设备的状态.
是指插入USB设备(如笔式驱动器)后的内容,
它消耗了多少电量.
而且我没有使用任何第三方API.
有人可以帮我吗?

hi friend ,I am working on a project(in window application of c#) in which I need to find out the status of a usb device.
means what after inserting usb device like a pen drive ,
how much power it is consuming.
And I am not using any Third party API.
can anybody please help me.
it is very urgent

推荐答案

您已经标记了ASP.NET问题,因此我正在考虑您正在谈论的是Web应用程序.

我认为这是不可能的,因为不应允许Web应用程序访问客户端计算机上的设备.这将对客户端计算机构成安全威胁.
[
You have tagged the question ASP.NET so I am considering you are talking about a web application.

I don''t think it would be possible because a web application shouldn''t be allowed to access devices on a client machine. That would be a security threat to the client machine.
This[^] thread may help you.


这篇关于查找USB设备(如pendrive)的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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