0

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);

Cheers people

3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by tootypegs
0

What does this have in common with this post?
That's right, neither show you've read the forum rules as both have been posted without any code tags.

0

What does this have in common with this post?
That's right, neither show you've read the forum rules as both have been posted without any code tags.

sorry my apologies, just rushed into this in need of help, my fault and apologies

0

Thanks, your help has been much appreciated!


...............and u's will be glad to know i have now read the rules! sorry again

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.