USB power reset

  • Thread starter Thread starter Pino
  • Start date Start date
P

Pino

Hi to all.

I would like to reset the power of an USB device. Are there same methods to
do this action in .NET or WMI? I would like to replace the power off state,
when I phisically disconnect the PC from the power supply.

Thanks,

Pino.
 
Hi,

There is nothing in the Framework for USB. You can P/Invoke the USB APIs,
but I don't think what you want is covered. AFAIK, WMI doesn't cover this
either.

Usually, this sort of thing is provided by the device driver, and not all
devices have equivalent capability. It is possible that the device
manufacturer will be able offer some specific guidance.

BTW, Jan Axelson had just released the 3rd Edition of the book USB Complete.
It does have .NET code and rather extensive information -- however, I am
pretty sure this isn't covered. I have a link to the book on my homepage if
you are interested. Click on Books.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 
Back
Top