If someone else is camping out on your com port name, the creation of the symbolic link will fail so there is no need to check the map. And what if it exists in the map? You can’t just go off and claim a new port in the driver, that would be a weird user experience.
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Rob Linegar
Sent: Wednesday, April 19, 2006 9:36 AM
To: Windows System Software Devs Interest List
Subject: RE: Re[2]: [ntdev] How Windows select which COM port to use
Course… It is also worth checking something else isnt already using a port a you’ve actually allocated via COMDB (by looking under the devicemap key) when your drivers loads…
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: 19 April 2006 17:14
To: Windows System Software Devs Interest List
Subject: RE: Re[2]: [ntdev] How Windows select which COM port to use
But they are now
so there is no reason not to use them.
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Rob Linegar
Sent: Wednesday, April 19, 2006 8:49 AM
To: Windows System Software Devs Interest List
Subject: RE: Re[2]: [ntdev] How Windows select which COM port to use
Wasn’t talking about devicemap… Was talking about the ComDB bit map.
I say this as we’ve seen other vendors devices do this…
Btw. I know you keep saying “use the ComDB APIs” and I agree they should be used… but they haven’t always been documented.
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: 19 April 2006 16:13
To: Windows System Software Devs Interest List
Subject: RE: Re[2]: [ntdev] How Windows select which COM port to use
The devicemap key is not important, if properly uninstalled (ie not manually deleting reg values), the ports class installer will free the name
d
– I can spell, I just can’t type.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Rob Linegar
Sent: Wednesday, April 19, 2006 7:38 AM
To: Windows System Software Devs Interest List
Subject: RE: Re[2]: [ntdev] How Windows select which COM port to use
Could it be that the device isnt removing itself from the map on uninstall…
So that when installed at COM8, uninstalled, then reinstalled its then allocated at COM9 ?
And that this has been done a few times?
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Robert Newton
Sent: 19 April 2006 15:01
To: Windows System Software Devs Interest List
Cc: Bob Midden
Subject: Re[2]: [ntdev] How Windows select which COM port to use
I’m afraid I don’t know how how COM ports are handled but I seem to
recall that, in the old days at least, you could boot into safe mode
and get rid of all these previously claimed COM ports. On the other
hand, I may have just been using too many controlled substances.
Well, some driver which was previously installed but not currently running claimed those missing ports. Not much more I can
recommend as to figuring out who claimed them. Did you ever manually uninstall the usb dongle by deleting reg values?
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tan Teik Chuan
Sent: Tuesday, April 18, 2006 8:35 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How Windows select which COM port to use
The contents show:
\Device\ltmodem0 COM3
\Device\Serial0 COM1
\Device\Serial1 COM2
\Device\USBSER000 COM9
I do not have Bluetooth software installed.
Regards,
Tan Teik Chuan
From:??“Doron Holan”
> Reply-To:??“Windows System Software Devs Interest List”
> To:??“Windows System Software Devs Interest List”
> Subject:??RE: [ntdev] How Windows select which COM port to use
> Date:??Tue, 18 Apr 2006 19:41:36 -0700
>>COM3 is taken.??By whom, I don’t know, but it is taken.??Do you have Bluetooth software installed???Bth software typically
>>creates a bunch of COM ports for you, so that could be why com3-8 is taken.
>>
>>What does the contents of HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM say?
>>
>>d
>>
Robert Newton
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer