|
-
August 4th, 2008, 12:39 AM
#1
USB Monitor
Hi all
i have found a artical which is monitor a USB Drive and one option is there for disable.But problem is that when i chose the option of disable then it is Showing disable but when i attched again USB Drive then also showing disable.
This is a link
Code:
http://www.codeproject.com/KB/system/HwDetect.aspx
i want to set the option of Enable also.When i chose the option of enable then USB Drive Show me enable.And i have no idea about that so plz tell help me..
Thx's in Advance
Last edited by vcprog; August 4th, 2008 at 01:02 AM.
-
August 4th, 2008, 02:49 AM
#2
Re: USB Monitor
Do you really want to disable, or just dismount? Big difference.
-Erik
-
August 4th, 2008, 02:59 AM
#3
Re: USB Monitor
 Originally Posted by egawtry
Do you really want to disable, or just dismount? Big difference.
-Erik
Thx's for reply..
I am new,i think you are right DISMOUNT..
Plz help me
-
August 4th, 2008, 07:48 AM
#4
-
August 4th, 2008, 08:38 AM
#5
Re: USB Monitor
Well, what is your problem? You are trying to apply this HwDetect software to the purposes it was NOT designed for. Aren't you?
From thin article:
Introduction
Hot-pluggable device is now a big threat to IT security. In this article, we will try to develop a user-mode application to detect device change on the system, i.e. plug-in a USB drive, iPod, USB wireless network card, etc. The program can also disable any newly plugged devices. We will get a basic idea on how this works and talk about its limitations at the end of this article.
So, the author don't mention this software could enable, mount or dismount any plugged devices: it only can detect and disable.
Last edited by VictorN; August 5th, 2008 at 03:22 AM.
Victor Nijegorodov
-
August 4th, 2008, 08:46 AM
#6
Re: USB Monitor
 Originally Posted by vcprog
Hi all
i have found a artical which is monitor a USB Drive and one option is there for disable.But problem is that when i chose the option of disable then it is Showing disable but when i attched again USB Drive then also showing disable.
This is a link
Code:
http://www.codeproject.com/KB/system/HwDetect.aspx
i want to set the option of Enable also.When i chose the option of enable then USB Drive Show me enable.And i have no idea about that so plz tell help me..
Thx's in Advance
something i would like to remind you that:
.that exe only works for xp or possibly lower winos
.these days, many worms are spread via usb. none of them passes my mini search engine- i made it for personal use, really rocky minitool by minibear!
-
August 4th, 2008, 10:27 AM
#7
Re: USB Monitor
 Originally Posted by vcprog
Thx's for reply..
I am new,i think you are right DISMOUNT..
Plz help me
Take a look at the SetupDi functions. Ex. SetupDiRemoveDevice().
-Erik
-
August 4th, 2008, 11:38 PM
#8
Re: USB Monitor
 Originally Posted by VictorN
Well, what is your problem? You are trying to apply this HwDetect software to the purposes it was NOT designed for. Aren't you?
From thin article:So, the author don't mention this software could enable, mount or dismount any plugged devices: it only can detect and disable. 
Thx's for reply
So can you tell me how can i set the property of enable and desble USB Port. Plz help i am new in progrramer..
-
August 5th, 2008, 09:13 AM
#9
Re: USB Monitor
 Originally Posted by vcprog
Thx's for reply
You are welcome.
 Originally Posted by vcprog
So can you tell me how can i set the property of enable and desble USB Port. Plz help i am new in progrramer..
Use the SetupDi functions to enumerate the PC's USB connections. In your case you are looking for the Mass Storage devices. Once you have the handle to the device, use the specific SetupDi function (as I mentioned before) to enable, disable, etc. Read the section on SetupDi in the Help.
-Erik
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|