Hi all
I am new in vc++(MFC) and also for this forum.How can i read USB Device name which is connected in USB Port.I know it's information store in registry.But i am not able to do that.Sop plz give me example code..
Plz help me
Thx's in Advance..
|
Go4Expert Founder
|
![]() |
| 1Aug2008,18:07 | #2 |
|
Search for USBTOR. As I am on Vista and reg is different I cannot tell you the exact location of it.
|
|
Go4Expert Member
|
|
| 1Aug2008,18:11 | #3 |
|
Quote:
Originally Posted by shabbir Thx's for reply |
|
Go4Expert Founder
|
![]() |
| 1Aug2008,19:13 | #4 |
|
Check out the Friendly Name under some subkeys at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\
|
|
Go4Expert Member
|
|
| 2Aug2008,10:38 | #5 |
|
Quote:
Originally Posted by shabbir Thx's in advane |
|
Go4Expert Founder
|
![]() |
| 2Aug2008,10:51 | #6 |
|
I don't have the code But I guess if you have the Name in any key in registry you can get the String from it.
|
|
Go4Expert Member
|
|
| 2Aug2008,11:09 | #7 |
|
Quote:
Originally Posted by shabbir ok i have name of key Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR Plz give me code becouse i have no idea about regedit code.Plz help me |
|
Go4Expert Founder
|
![]() |
| 2Aug2008,11:23 | #8 |
|
Then Search MSDN for RegOpenKey and related functions.
|
|
Go4Expert Member
|
|
| 4Aug2008,13:22 | #9 |
|
Quote:
Originally Posted by shabbir 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.. |

