Hi,
I have written a utlity which would take inf file
containing some HardwareIDs for the disks as input.
This utility would look for the matching HardwareIDs
on the system and would replace the “GENDISK” to the
“MYDISKDRIVER”. This will make sure that for the some
HardwareIDs my class driver is getting loaded(actually
it changes the service from disk to mydiskdriver).
I can see my inf stored as oem0.inf in the Windows\inf
directory.
Now the problem arise if I move the same controller
without changing disk configuration on it from one
slot to another PCI slot.
I can see the disk.sys getting loaded for logical
disks on which previously mydiskdriver was getting
loaded.
I thought mydiskdriver would get loaded instead of
disk.sys.May be I am missing something. Can someone
help me with this.
Yeah, mydiskdriver has a Test signature.
Thanks and Regards
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
PNP has no way to determine that the controller you moved is exactly the
same controller that was in the previous slot. It treats this
controller as a new device and everything attached to it is also
considered a new device.
globally unique PNP ids would fix this, but there’s no defined unique ID
for PCI, and the ones reported by SCSI devices don’t work for a variety
of reasons (ranging from i didn’t trust them to really be unique, to PNP
doesn’t understand multipath configurations and bugchecks when it sees
two devices in the PNP tree with the same unique ID).
you might look into writing a device coinstaller. I think you could get
it to run as part of device installation for anything in the disk class
and could probably override the service chosen as a result. I don’t
know this for certain, but this is what i would look into in your shoes.
the DDK documentation talks some about coinstallers along with the
SetupDI API.
-p
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gurpreet Anand
Sent: Thursday, June 26, 2003 2:41 PM
To: NT Developers Interest List
Subject: [ntdev] Ref:Loading class driver in Windows 2003 server
Hi,
I have written a utlity which would take inf file containing some
HardwareIDs for the disks as input.
This utility would look for the matching HardwareIDs on the system and
would replace the “GENDISK” to the “MYDISKDRIVER”. This will make sure
that for the some HardwareIDs my class driver is getting loaded(actually
it changes the service from disk to mydiskdriver).
I can see my inf stored as oem0.inf in the Windows\inf directory.
Now the problem arise if I move the same controller without changing
disk configuration on it from one slot to another PCI slot.
I can see the disk.sys getting loaded for logical disks on which
previously mydiskdriver was getting loaded.
I thought mydiskdriver would get loaded instead of disk.sys.May be I am
missing something. Can someone help me with this.
Yeah, mydiskdriver has a Test signature.
Thanks and Regards
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com