Link to home
Start Free TrialLog in
Avatar of wildarmsdave
wildarmsdave

asked on

Check for a SPECIFIC device connected to USB port

Hi,

Is it possible to programatically check when a specific device has been plugged into the USB port through VB6 or .net?? I wish to stop any Iphones being connected to a PC but need to allow other USB devices including pen drives. The only way I could think of is to scan through the conencted drives and then somehow track down the Iphone drive letter and then close the drive if detected?

Many thanks,

Dave.
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wildarmsdave
wildarmsdave

ASKER

Thanks for your help guys. I'll look into this in more detail when I have time but you have given me a good starting point.. I found the perfect thing on the CodeProject website but as its in C++ it is of no use to me. This shows the insertion and removal of a device and the option to disable it wich would be perfect.

http://www.codeproject.com/KB/system/HwDetect.aspx

There is also the link below which detects when an IPod is connected so I should be ble to modify this for an IPhone

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=60373&lngWId=1