Click here to Skip to main content
15,846,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the Code Or Script For Enable Or Disable Usb Ports Using Visual Basic Programming ?
Posted

1 solution

AFAIK it is not possible.

There are third party downloads available that can control them, or you can disable manually via the BIOS or by device manager.

I had this problem recently and I did not find a resolution to it.

I do know that you can catch whether anything is plugged in or out and do an interrupt, but this involves dicking around in the register, and given that you are a student doing an assignment I suspect you may not be up to this task.

I would suggest that you could call the Device Manager programatically and switch off from there.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900