Hello All,
I have written a device driver for NT that provides a number of serial
ports, however this is not a driver for serial port hardware - it opens a
number of “real” serial ports and performs I/O through them. The number of
pseudo serial ports implemented is not related to the number of real serial
ports opened.
This driver is currently an NT4 driver and does not support plug and play or
power management, however I would like to upgrade to a full Windows 2000
driver which means adding PNP support, but I am not sure how to do this.
Since I don’t have real hardware I was considering implementing a bus driver
and then enumerating my pseudo com ports from this bus. Is this a good idea?
But what I can’t understand is how to tell the OS that my driver depends on
other real serial ports.
Any ideas or suggestions?
Regards,
Rob Barnes
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
>Since I don’t have real hardware I was considering implementing a bus
driver and then enumerating my pseudo com ports from this bus. Is this
a >good idea? But what I can’t understand is how to tell the OS that my
driver >depends on other real serial ports.
Yes that’s the right idea. Your bus driver should register for PnP
notification of COM ports and open them when you get notified. The
toaster package has all the stuff you need.
The bus driver (src\general\toaster\bus) shows how to enumerate devices.
The toastmon (src\general\toaster\toastmon) driver shows how to register
for PnP notification.
I would suggest you to use XP DDK as I have made several enhancements to
the toaster package.
-Eliyas
-----Original Message-----
From: Robert Barnes [mailto:xxxxx@farallon.com.au]
Sent: Sunday, July 08, 2001 3:37 PM
To: NT Developers Interest List
Subject: [ntdev] Plug and Play scenario
Hello All,
I have written a device driver for NT that provides a number of serial
ports, however this is not a driver for serial port hardware - it opens
a
number of “real” serial ports and performs I/O through them. The number
of
pseudo serial ports implemented is not related to the number of real
serial
ports opened.
This driver is currently an NT4 driver and does not support plug and
play or
power management, however I would like to upgrade to a full Windows 2000
driver which means adding PNP support, but I am not sure how to do this.
Since I don’t have real hardware I was considering implementing a bus
driver
and then enumerating my pseudo com ports from this bus. Is this a good
idea?
But what I can’t understand is how to tell the OS that my driver depends
on
other real serial ports.
Any ideas or suggestions?
Regards,
Rob Barnes
You are currently subscribed to ntdev as: xxxxx@microsoft.com
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