galapogos
November 12th, 2007, 05:31 AM
Hi,
I'm building an API function that takes a USB VID, PID and serial number, and then returns a file handle. I know how to to get the device name of the USB device(eg \\?\usb#vid_03b0&pid_32b0#5&2e0b34b9&0&2#{b51c6f16-6335-1fd2-921e-16cf7fb912ed) from the given input parameters. I also know how to get a file handle of HANDLE type from a volume device name(eg \\.\PhysicalDrive0) with CreateFile(), but I'm not sure how to bridge the gap between the USB device, and the actual volume.
Does anyone know? TIA
I'm building an API function that takes a USB VID, PID and serial number, and then returns a file handle. I know how to to get the device name of the USB device(eg \\?\usb#vid_03b0&pid_32b0#5&2e0b34b9&0&2#{b51c6f16-6335-1fd2-921e-16cf7fb912ed) from the given input parameters. I also know how to get a file handle of HANDLE type from a volume device name(eg \\.\PhysicalDrive0) with CreateFile(), but I'm not sure how to bridge the gap between the USB device, and the actual volume.
Does anyone know? TIA