Click here to Skip to main content
11,709,375 members (38,105 online)
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
dgpatel630
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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 580
1 OriginalGriff 250
2 Maciej Los 225
3 Peter Leow 219
4 Mika Wendelius 160
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,027
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856


Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2015
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