Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 25th, 2007, 7:37 AM   #1
tootypegs
Newbie
 
Join Date: Nov 2007
Posts: 2
Rep Power: 0 tootypegs is on a distinguished road
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.
tootypegs is offline   Reply With Quote
Old Nov 25th, 2007, 8:08 AM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 652
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: c++ handles help??

I see you are spamming all the boards with this question. Saw it on DaniWeb just a few minutes ago.
Ancient Dragon is offline   Reply With Quote
Old Nov 25th, 2007, 8:10 AM   #3
tootypegs
Newbie
 
Join Date: Nov 2007
Posts: 2
Rep Power: 0 tootypegs is on a distinguished road
Re: c++ handles help??

Quote:
Originally Posted by Ancient Dragon View Post
I see you are spamming all the boards with this question. Saw it on DaniWeb just a few minutes ago.


Sorry I wasnt thinking when i posted this, won't happen again, just in need of help. My fault
tootypegs is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:11 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC