Click here to Skip to main content
Rate this: bad
good
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
 
Thanks,
 
Regard,
 
[]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 ?
[]EDITED []
Posted 9-Dec-12 22:04pm
dgpatel627
Edited 10-Dec-12 3:33am
v2

1 solution

Rate this: bad
good
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...
  Permalink  
v2

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



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