Sorry for expressing a maybe both already considered and somewhat
impossible opinion, but here goes:
So, if your device really need a different driver than the default one,
maybe you should make sure that the default disk.sys doesn’t at all
communicate with your device, by making it have a PnP profile which
prevents the PnP system from associating disk.sys with your device.
Of course, I’m by no means an expert on file system and disk drivers. But
not knowing things have never stopped me from expressing an opinion ![:wink: :wink:](/images/emoji/twitter/wink.png?v=12)
–
Mats
xxxxx@lists.osr.com wrote on 10/29/2004 12:17:38 PM:
Bob,
You are correct that once our device configuration is complete the system
uses our driver only for our optical device on subsequent reboots. The
problem is when the device is detected for the first time and disk.sys
loads, it takes control of our optical disk, and the system crashes
immediately with a BLUE SCREEN ![:frowning: :frowning:](/images/emoji/twitter/frowning.png?v=12)
Rgds,
Swati
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Robert Stankey
Sent: Friday, October 29, 2004 12:26 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Override disk.sys in Win2000
On Thu, 28 Oct 2004 19:40:43 +0530, Swati Chawdhary wrote:
I guess I fail to see the problem. If your driver is ultimately being
loaded and used why does it matter? Is there something specific you’re
trying to do when the device is initially detected by PnP? Once your
device configuration is complete the system should use your driver for
the
device on subsequent reboots.
Bob
> Hi All,
>
> I want to use my driver in place of disk.sys for certain type of
optical
> disks, based on Vendor/Product ID information. Am using SetupDI API’s
like
> SetupCopyOEMInf, UpdateDriverForPlugAndPlayDevices for changing the
disk.sys
> service to my own service(swati_opt.sys) on my optical disk.
>
> The problem is PnP enumeration, which always chooses disk.sys for PDOs
that
> are enumerated as type GenericDisk, ScsiDisk, etc. Whenever PnP detects
the
> device it always loads disk.sys first then unloads disk.sys and loads
any
> other driver.
>
> Has anyone else tried this before? Any solution to this problem? Please
> help…
>
> Thanks in Advance.
> Regards,
> Swati
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at http://www.
osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
ForwardSourceID:NT000065DE