To come back to your original question, all of the bios enumeration/hand off/detection stuff is to find a device and identify it (with a set of hardware ids and such) and NOT to install a driver. The installed driver is done by pnp at a later stage after enumeration. So how it was found makes no difference as to which driver is loaded, what makes a difference is the IDs assigned to the device. Like david said, just disable the device in device manager to prevent serial from loading (note that uninstall will also do this but the best matched driver will then be reinstalled on reenumeration). From there you can try to reenable the device and point the installation to your driver via your own INF.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Tuesday, June 03, 2008 2:34 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Re:COM port detection
Serial.sys does not ‘get the port’. PnP assigns Serial.sys to the device
because the Serial Port (*PNP50x) driver matched the Device ID (Compatible
ID). Serial.sys is *told* to load on the port.
Install your own driver on the device. Create and INF that indicates your
driver is an alternative for *PNP50x (or whatever the device/compatible ID
is of your serial port). Then use Device Manager, devcon, whatever to
install your driver on the device. Serial.sys will absolutely leave your
port alone since PnP will never tell it to load as the FDO for the device.
Good Luck,
-dave
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of FarmerJo
Sent: Tuesday, June 03, 2008 5:29 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re:COM port detection
Hi,
Eventually I want to use an alternative driver for the COM port so I thought
as a first step towards this I would stop serial.sys from geting the port.
Regards FarmerJo
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer