I'm using SetupDiGetRegistryProperty because
SetupDiGetDeviceInterfaceDetail() always seems to return no interfaces.
Can someone point me at some code/documentation showing how one of these
mass storage devices can be opened directly please.
Regards,
Neil
Names of the form \Device\xxx are internal NT object manager names which are
inaccessible to Win32. You will only be able to access your device if it
creates a symbolic link to \Device\USBPDO-1 from the \??\ directory. Objects
in the \??\ kernel directory show up through \\.\ in Win32. Use Winobj in
the DDK (or download it from www.sysinternals.com) to check.
--
Tim Robinson, MVP (Windows SDK)
http://www.themobius.co.uk/
Thanks for the response.
I've found the device I want listed under
\\?\USBSTOR#Disk&Ven_Generic&Prod_STORAGE_DEVICE&Rev_0.01#{ guid }
I can open this with CreateFile() and read the data.
My problem is that I don't know HOW to do this programatically - I want to
enumerate, identify the new USB Mass Storage device and open it, preferably
without the user having to rummage through the registry for the device name
and type it in :-)
Can you suggest a way to get access to this device name? The documentation
says I should be able to do this with SetupDiGetDeviceInterfaceDetail(), but
I'm not having much luck here - I've been told it only works for HID
devices.
Many Thanks
Regards,
Neil
"Tim Robinson" <tim_at_gaat.f...@nowhere.com> wrote in message
news:ap4d9p$rat2p$1...@ID-103400.news.dfncis.de...