![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2007
Posts: 2
Rep Power: 0
![]() |
c++ handles help??
Hi basically i have a program that gets a handle on a USB device lusing '\\\\?\\e:' but i want to be able to get a handle on it using its device instance id 'STORAGE\REMOVABLEMEDIA\7&324ACC50&0&RM:'
How do i impliment this, i have tried the following below and it just doesnt work but i guessed it wouldnt be this easy, any ideas????????? any help would be apreciated!!? HANDLE hRead = CreateFile(
//("\\\\?\\E:"),
(" \\\\.\\STORAGE\REMOVABLEMEDIA\7&324ACC50&0&RM:"),
FILE_GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL);Any help would be appreciated ![]() Last edited by DaWei; Nov 25th, 2007 at 7:49 AM. Reason: Added code tags. |
|
|
|
|
|
#2 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 652
Rep Power: 4
![]() |
Re: c++ handles help??
I see you are spamming all the boards with this question. Saw it on DaniWeb just a few minutes ago.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Nov 2007
Posts: 2
Rep Power: 0
![]() |
Re: c++ handles help??
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to check if button was clicked already | DWk | Visual Basic .NET | 9 | Feb 3rd, 2007 8:52 AM |
| VB Idiot | boatn19 | Visual Basic .NET | 1 | Jan 25th, 2007 6:18 PM |
| Destructors and how the OS handles program memory | Harakim | C++ | 12 | May 13th, 2006 5:40 AM |
| Thread Handles? | NoSnipeLimit | Delphi | 1 | Mar 20th, 2006 7:25 AM |
| vb6 to vb.net | bl00dninja | Visual Basic .NET | 2 | Sep 24th, 2005 2:55 PM |