i have a kmdf disk driver loosely based on the ramdisk sample, but with enhancements such that it gets loaded on a bus. my driver works fine in xp and 2k3, yet fails in win7 - i get code 10 the driver fails to load. seems like the last thing to happen is that i receive ioctl_query_storage_property which i fail. is this a new requirement for a disk driver in win7? how does the ramdisk sample load without handling this?
>seems like the last thing to happen is that i receive ioctl_query_storage_property which i fail.
Did you see it on yours WinDbg debug messages?
WDK 7600.16385.0 includes sample of ramdisk and the source code of this driver does not handle ioctl_query_storage_property. Try to run the sample first.
Igor Sharovar
yes… first i noticed IOCTL_STORAGE_GET_DEVICE_NUMBER, now that i handled that, i gaet the query storage property, so i presume i have to handle that too. i just wonder why i didn’t have to handle these for xp or 2k3. as to why the ramdisk doesn’t have to handle these, i have to guess that it has to do with the fact that i’m registering with the mount manager, or that i’m a child device on a bus - otherwise my behavior should be the same as ramdisk…
I’ve noticed that Win7 requires more information from disk class driver compare with previous versions of Windows.
Igor Sharovar