Hi, recently I want to access a USBSTOR driver service UDisk from a App(command line or UI is not restrict).
I have no idea about how to implement it.
Can any one give some tips? Using SetupDiXXX? Or Createfile with Symbol link?
Any another question:
I want to implement a PCIe disk driver, any useful sample code for it?
Does the RAM DISK driver could be used for the PCIe attached disk?
Or what should be done on the PCIe disk side for using the RAM DISK driver instead of developing my own windows driver?
What is UDisk? Usbstor exposes disks, not other services. If you want to expose a pcie attached device as storage, write a storport miniport, not a ramdisk
Hi, recently I want to access a USBSTOR driver service UDisk from a App(command line or UI is not restrict).
I have no idea about how to implement it. Can any one give some tips? Using SetupDiXXX? Or Createfile with Symbol link?
Any another question: I want to implement a PCIe disk driver, any useful sample code for it? Does the RAM DISK driver could be used for the PCIe attached disk?
Or what should be done on the PCIe disk side for using the RAM DISK driver instead of developing my own windows driver?
What is UDisk? Usbstor exposes disks, not other services. If you want to expose
a pcie attached device as storage, write a storport miniport, not a ramdisk
d
Bent from my phone
Thank you for your reply, Doron.
Here UDisk is an abbreviation of USB disk, it use the Windows USBSTOR.sys.
Now I want to write an App, not matter it is console or with UI, to access the USB disk.
Any sample or any tips on how to get the USB disk handle?
For USBSamp I used, it use the SetupDiXXX to fetch the USB device handle which install the USBSamp driver.
And, for PCIe attached storage device, such as SSD, what is the driver stack of it?
As PCIe spec is general, which means that the PCIe registers is with the same function/usage of the same address, can I omit the developing of this storport miniport dirver, but use a Win8 native storport miniport driver or the 3rd party ones?
Out of the discussion scope:
RAMDISK driver is native on windows system?
What should do to create a ramdisk on my Win7 or Win8 system?
> Hi, recently I want to access a USBSTOR driver service UDisk from a App(command line or UI is
not restrict).
What is “USBSTOR driver service UDisk”? Is it something accessible by disk/storage IOCTLs?
I want to implement a PCIe disk driver, any useful sample code for it?
Treat the PCIe card as a SCSI controller with a disk attached to it, and write the StorPort miniport driver (a ScsiPort one if you really need to support the obsolete OS of WinXP. Well, StorPort is ScsiPort 2.0, so the code will be very similar).
Or what should be done on the PCIe disk side for using the RAM DISK driver
What RAM DISK driver do you want to use? there is no such thing embedded in Windows. Also, the PCIe device is not RAM
Just createfile is ok? But what parameter for it, the symbol link?
I do not known the symbol link for the devices use the usbstor.sys driver.
Can SetupDixxx used here?
Can I found any sample code for access the USBSTOR.sys driver serviced Usb disk of App?
You have missed the point of Max’s message.
The point is that a usbstor.sys device is just a disk, exactly like
every other disk in your system, and you don’t access disks directly.
There is no point. Your device will have a file system, and the file
system will be mounted with a drive letter. If you want to access the
usbstor.sys disk that is mounted as F:. then you just read and write
files on F: exactly as you would have with C:. There is nothing special
to do.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.