Click here to Skip to main content
12,550,570 members (32,296 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
Dear Sir,

I want to USB port block and Unblock both application difrence but now running port not block because the port of keyboard, mouse, etc but some port not used now so how it is possible



[]EDITED to make readable[]
I want to block/unblock a USB port through the ( Windows C#) application. The ports currently used by keyboard, mouse etc are not blocked. But can I block the unused ports ? Is it possible ? If yes, then how ?
Posted 9-Dec-12 22:04pm
Updated 10-Dec-12 3:33am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If your application binds to any of the ports, nobody else can bind to it. That's the only way to block others.

So instead of blocking , try to make these ports as IN USE. It will be BLOCKED for others...

And by the way, please improve your english and try to use punctuation marks wherever necessary. Your question was very simple but I guess very less people were able to read it to the end...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100