Click here to Skip to main content
Rate this: bad
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 23:04pm
Edited 10-Dec-12 4: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
0 OriginalGriff 7,355
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,942
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514

Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2014
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