FILE_DEVICE_DISK and Win98

All:

I have a W2K WDM driver that creates a storage device from flash memory on
a USB device.

All was well until I tried to port the code to Win98. Using
IoCreateDevice(…, FILE_DEVICE_DISK, FILE_REMOVABLE_MEDIA, …) in the
AddDevice routine destabilizes the system. (The call does return success by
the way.)

I have seen the UsbLs120 example that has been discussed on this forum.
This example uses a driver for the USB (WDM) and a separate driver for the
storage (Win95 DDK). Quite a few gyrations are spent communicating between
the two drivers.

My question is why can’t a single driver be used for this device under
Win98? Isn’t the FILE_DEVICE_DISK supported for IoCreateDevice? Is the two
driver model the only way around this?

Thanks in advance for any advice.

Tom McCormick
xxxxx@cent-tech.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> My question is why can’t a single driver be used for this device under

Win98? Isn’t the FILE_DEVICE_DISK supported for IoCreateDevice? Is the two

No.
Win9x supports only VXD disk drivers - not WDM ones.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

You have either write full port driver (as in USBLS120 sample) or write
SCSI miniport driver. Windows 9x does not support other ones I think.
Better write SCSI miniport if you need to run your hardware in both
operating environments.

Anton Kolomyeytsev

CoolDev.Com - Toolkits for Network & Storage Software Developers
“KoolSockets” & “KoolStorage” - TDI Client, Kernel Sockets, SCSI miniport,
iSCSI
http://www.CoolDev.Com, xxxxx@CoolDev.Com,
xxxxx@CoolDev.com

On 06/22/01, “xxxxx@cent-tech.com” wrote:

All:

I have a W2K WDM driver that creates a storage device from flash memory on
a USB device.

All was well until I tried to port the code to Win98. Using
IoCreateDevice(…, FILE_DEVICE_DISK, FILE_REMOVABLE_MEDIA, …) in the
AddDevice routine destabilizes the system. (The call does return success by
the way.)

I have seen the UsbLs120 example that has been discussed on this forum.
This example uses a driver for the USB (WDM) and a separate driver for the
storage (Win95 DDK). Quite a few gyrations are spent communicating between
the two drivers.

My question is why can’t a single driver be used for this device under
Win98? Isn’t the FILE_DEVICE_DISK supported for IoCreateDevice? Is the two
driver model the only way around this?

Thanks in advance for any advice.

Tom McCormick
xxxxx@cent-tech.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com