Click here to Skip to main content
15,897,371 members
Articles / Programming Languages / C++

How to Restart a USB Port

Rate me:
Please Sign up or sign in to vote.
5.00/5 (20 votes)
23 Mar 2024CPOL2 min read 30.6K   806   46  
Shows how to use IOCTL_USB_HUB_CYCLE_PORT to restart a USB port under Windows
Shows how to find a USB device in the Windows Device Management by a given Device Instance ID, determine the used USB port number, get its parent device (its USB hub), open the hub and perform the IOCTL_USB_HUB_CYCLE_PORT call.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions