Re: Which Registry entry would be used to keep track of Serial Port n o.s ?

** Reply to message from Srinivasa Rao Deevi on
Wed, 20 Feb 2002 18:42:50 -0800

> I have some problem in getting Serial port number. Every time when I
> uninstall the virtual COM port , and reinstall the virtual COM port I am
> getting a different number. \HKLM\DeviceMap\SERIALCOMM, I found some COM
> port no.s missing like Com1,2 … , COM 15 . There are 12 missing no.'s in
> between . Anybody has any idea how the Query registry for "PortName " would
> get the COM port no. in it ? Or the Registry parameter which stores next COM
> port no. that would be assigned in the registry .

If your virtual ports are installing with an INF using “Ports” class, and you
are uninstalling them through Device Manager, the ports class installer should
be releasing the port names too. The names are assigned by a mysterious API
that manipulates a “database” that my experimentation finds to be a single
registry key. (See my other post.)

There’s a ports class installer sample in the DDK:
G:\XPDDK\2600\src\setup\pnpports\ports.c. Also look at msports.h for prototypes
and limited documentation of the COMDB function calls.

Sincerely,

Chris Myers
Senior Project Engineer
Quatech, Inc.


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