How to get the com port count in kernel mode

Dear All,

Anybody can point me how to get the com port count in kernel mode.I am writing a virtual com port driver for win98 and win2000,I need to get the curren com port number and create my com port number.If the config manager function can used to implement it?

Any advise will be appreciated!

Best Regards,
Black

This is a very unreliable method to determine the com port number you want to expose. Consider that a modem is not plugged in when you determine the com port number and you use the same com port number as the modem. When the modem is plugged in, the modem no longer works. On windows 2000, if you install under the ports device class, a unique com number will be installed for you upon device installation. If you install under your own device class, then there are APIs which you can call in your device installer DLL which will give you a unique com name.

You can retrieve this com number by calling IoOpenDeviceRegistryKey in IRP_MN_START_DEVICE to open the device instance key and then query for the value “PortName”, which will be returned to you as a string, in the form of “COMX”, where X is a decimal value. You don’t actually have to inspect the value that is returned, all you need to do is append the value to "\DosDevices" and create the symbolic link with that string.

As for win98, you are on your own. Perhaps some devs who are more familiar with ccport know of a solution for that platform.

D

This posting is provided “AS IS” with no warranties, and confers no rights.

From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 8:48 PM
To: NT Developers Interest List
Dear All,
?
Anybody?can point?me how to get the com port count in kernel mode.I am writing a virtual com port driver for win98 and win2000,I need to get the curren com port number and create my com port number.If the config manager function can used to implement it?
?
Any advise will be appreciated!
?
Best Regards,
Black

Thanks for you response,

Because I have writed a com port enumerator to emum my com port.I have to confirm there is how many com port on the system.So that my com enumerator can
create new device node(CM_Create_DevNode) for my com port use the last com number.for example if the system have com1 and com2,I will create the com number is com3.Thus I have to enum all com port on system,I want to search registry to find the current com port number,But it seem too trouble.

Do you have any advise.

Best Regards,
Black

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, April 09, 2003 12:14 PM
Subject: [ntdev] RE: How to get the com port count in kernel mode

This is a very unreliable method to determine the com port number you want to expose. Consider that a modem is not plugged in when you determine the com port number and you use the same com port number as the modem. When the modem is plugged in, the modem no longer works. On windows 2000, if you install under the ports device class, a unique com number will be installed for you upon device installation. If you install under your own device class, then there are APIs which you can call in your device installer DLL which will give you a unique com name.

You can retrieve this com number by calling IoOpenDeviceRegistryKey in IRP_MN_START_DEVICE to open the device instance key and then query for the value “PortName”, which will be returned to you as a string, in the form of “COMX”, where X is a decimal value. You don’t actually have to inspect the value that is returned, all you need to do is append the value to "\DosDevices" and create the symbolic link with that string.

As for win98, you are on your own. Perhaps some devs who are more familiar with ccport know of a solution for that platform.

D

This posting is provided “AS IS” with no warranties, and confers no rights.

From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 8:48 PM
To: NT Developers Interest List
Dear All,

Anybody can point me how to get the com port count in kernel mode.I am writing a virtual com port driver for win98 and win2000,I need to get the curren com port number and create my com port number.If the config manager function can used to implement it?

Any advise will be appreciated!

Best Regards,
Black


You are currently subscribed to ntdev as: xxxxx@21cn.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

On which OS are you using CM_Create_DevNode to create the port?

d

-----Original Message-----
From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 10:02 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to get the com port count in kernel mode

Thanks for you response,

Because I have writed a com port enumerator to emum my com port.I have to confirm there is how many com port on the system.So that my com enumerator can
create new device node(CM_Create_DevNode) for my com port use the last com number.for example if the system have com1 and com2,I will create the com number is com3.Thus I have to enum all com port on system,I want to search registry to find the current com port number,But it seem too trouble.

Do you have any advise.

Best Regards,
Black

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, April 09, 2003 12:14 PM
Subject: [ntdev] RE: How to get the com port count in kernel mode

This is a very unreliable method to determine the com port number you want to expose. Consider that a modem is not plugged in when you determine the com port number and you use the same com port number as the modem. When the modem is plugged in, the modem no longer works. On windows 2000, if you install under the ports device class, a unique com number will be installed for you upon device installation. If you install under your own device class, then there are APIs which you can call in your device installer DLL which will give you a unique com name.

You can retrieve this com number by calling IoOpenDeviceRegistryKey in IRP_MN_START_DEVICE to open the device instance key and then query for the value “PortName”, which will be returned to you as a string, in the form of “COMX”, where X is a decimal value. You don’t actually have to inspect the value that is returned, all you need to do is append the value to "\DosDevices" and create the symbolic link with that string.

As for win98, you are on your own. Perhaps some devs who are more familiar with ccport know of a solution for that platform.

D

This posting is provided “AS IS” with no warranties, and confers no rights.

From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 8:48 PM
To: NT Developers Interest List
Dear All,

Anybody can point me how to get the com port count in kernel mode.I am writing a virtual com port driver for win98 and win2000,I need to get the curren com port number and create my com port number.If the config manager function can used to implement it?

Any advise will be appreciated!

Best Regards,
Black


You are currently subscribed to ntdev as: xxxxx@21cn.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
b­®¶¹®vµj®Â£‰²r¢¹®±ižj¢½u÷–²

Is it possible to install under the ports class but inhibit the unique com
number generation, particularly say in Windows XP?

This is desirable to allow users the ability to assign their own com number
to a port during device installation, rather than requiring them to wait and
go to an advanced property page.

“Doron Holan” wrote in message
news:xxxxx@ntdev…

On windows 2000, if you install under the ports device class, a unique com
number will be installed for you upon device installation.

My OS is win98,My device is a usb device,I use it to virtual a com port.
Now I have implement a USB driver and a serial driver ON win98,and I call the CM_Create_DevNode function to create a com device node in usb driver.I hope can implement the com port PNP function with this method.But I need to choosing a com port number.so I ask this question.

Best Regards,
Black

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Thursday, April 10, 2003 12:41 AM
Subject: [ntdev] RE: How to get the com port count in kernel mode

> On which OS are you using CM_Create_DevNode to create the port?
>
> d
>
> -----Original Message-----
> From: Black Lee [mailto:xxxxx@21cn.com]
> Sent: Tuesday, April 08, 2003 10:02 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: How to get the com port count in kernel mode
>
> Thanks for you response,
>
> Because I have writed a com port enumerator to emum my com port.I have to confirm there is how many com port on the system.So that my com enumerator can
> create new device node(CM_Create_DevNode) for my com port use the last com number.for example if the system have com1 and com2,I will create the com number is com3.Thus I have to enum all com port on system,I want to search registry to find the current com port number,But it seem too trouble.
>
> Do you have any advise.
>
> Best Regards,
> Black
>
> ----- Original Message -----
> From: “Doron Holan”
> To: “NT Developers Interest List”
> Sent: Wednesday, April 09, 2003 12:14 PM
> Subject: [ntdev] RE: How to get the com port count in kernel mode
>
>
> This is a very unreliable method to determine the com port number you want to expose. Consider that a modem is not plugged in when you determine the com port number and you use the same com port number as the modem. When the modem is plugged in, the modem no longer works. On windows 2000, if you install under the ports device class, a unique com number will be installed for you upon device installation. If you install under your own device class, then there are APIs which you can call in your device installer DLL which will give you a unique com name.
>
> You can retrieve this com number by calling IoOpenDeviceRegistryKey in IRP_MN_START_DEVICE to open the device instance key and then query for the value “PortName”, which will be returned to you as a string, in the form of “COMX”, where X is a decimal value. You don’t actually have to inspect the value that is returned, all you need to do is append the value to "\DosDevices" and create the symbolic link with that string.
>
> As for win98, you are on your own. Perhaps some devs who are more familiar with ccport know of a solution for that platform.
>
> D
>
> This posting is provided “AS IS” with no warranties, and confers no rights.
>
>
> From: Black Lee [mailto:xxxxx@21cn.com]
> Sent: Tuesday, April 08, 2003 8:48 PM
> To: NT Developers Interest List
> Dear All,
>
> Anybody can point me how to get the com port count in kernel mode.I am writing a virtual com port driver for win98 and win2000,I need to get the curren com port number and create my com port number.If the config manager function can used to implement it?
>
> Any advise will be appreciated!
>
> Best Regards,
> Black
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@21cn.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
> b­®¶¹®vµj®Â£‰²r¢¹®±ižj¢½u÷–²
> bvj{N rzǧujy器^j ^ yb ((

I’m not sure about Win98 or Win2000, but look at the
${DDKHome|}\src\setup\pnpport sample in the ddk. It demonstrates using
ComDB functions, which may only be present in the latest DDK and functional
in WinXP. I currently am using these functions under WinXP, but am see
double COM number usage, probably because of the port class assignment Doron
mentioned, hence my desire like Mr. Lee to control all COM number
assignments for my port.

I do know that the ComDB value under
“HLKM\System\CurrentControlSet\Control\Com Name Arbiter” is a bit masked key
used in Win2000 and WinXP to determine what COM numbers have been assigned.

“Black Lee” wrote in message news:xxxxx@ntdev…
> Thanks for you response,
>
> Because I have writed a com port enumerator to emum my com port.I have to
confirm there is how many com port on the system.So that my com enumerator
can
> create new device node(CM_Create_DevNode) for my com port use the last com
number.for example if the system have com1 and com2,I will create the com
number is com3.Thus I have to enum all com port on system,I want to search
registry to find the current com port number,But it seem too trouble.
>
> Do you have any advise.
>
> Best Regards,
> Black
>

No, it isn’t possible to suppress the generation of the com port number,
but what you can do is in the post processing of DIF_INSTALLDEVICE,
present the dialog, release the com port number that the ports class
installer gave the device and claim the new one. After you claim the
new one, write it into the appropriate registry location and call the
same APIs that the advanced dialog does to reenumerate the stack.

d

-----Original Message-----
From: Del Fredricks [mailto:xxxxx@ask.i.might.tell]
Sent: Wednesday, April 09, 2003 9:53 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to get the com port count in kernel mode

Is it possible to install under the ports class but inhibit the unique
com
number generation, particularly say in Windows XP?

This is desirable to allow users the ability to assign their own com
number
to a port during device installation, rather than requiring them to wait
and
go to an advanced property page.

“Doron Holan” wrote in message
news:xxxxx@ntdev…

On windows 2000, if you install under the ports device class, a unique
com
number will be installed for you upon device installation.


You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

This key value is undocumented and should not be inspected / changes
w/out using the ComDB apis (which provide synchronization to the
writes). The comdb is only present on win2k/xp/server 2003. It is not
available on win9x systems.

d

-----Original Message-----
From: Del Fredricks [mailto:xxxxx@ask.i.might.tell]
Sent: Wednesday, April 09, 2003 10:00 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to get the com port count in kernel mode

I’m not sure about Win98 or Win2000, but look at the
${DDKHome|}\src\setup\pnpport sample in the ddk. It demonstrates using
ComDB functions, which may only be present in the latest DDK and
functional
in WinXP. I currently am using these functions under WinXP, but am see
double COM number usage, probably because of the port class assignment
Doron
mentioned, hence my desire like Mr. Lee to control all COM number
assignments for my port.

I do know that the ComDB value under
“HLKM\System\CurrentControlSet\Control\Com Name Arbiter” is a bit masked
key
used in Win2000 and WinXP to determine what COM numbers have been
assigned.

“Black Lee” wrote in message news:xxxxx@ntdev…
> Thanks for you response,
>
> Because I have writed a com port enumerator to emum my com port.I have
to
confirm there is how many com port on the system.So that my com
enumerator
can
> create new device node(CM_Create_DevNode) for my com port use the last
com
number.for example if the system have com1 and com2,I will create the
com
number is com3.Thus I have to enum all com port on system,I want to
search
registry to find the current com port number,But it seem too trouble.
>
> Do you have any advise.
>
> Best Regards,
> Black
>


You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Typing “com port enumeration windows 98” into google, I got the following 2 hits rather quickly:

http://www.codeproject.com/system/listports.asp
http://www.codeproject.com/system/enumports.asp

Why can you not use the devnode created for your usb device for the com port? This way there is no need to manually create another one.

d

This posting is provided “AS IS” with no warranties, and confers no rights

-----Original Message-----
From: Black [mailto:xxxxx@21cn.com]
Sent: Wednesday, April 09, 2003 9:53 AM
To: NT Developers Interest List
Subject: [ntdev] RE: How to get the com port count in kernel mode

My OS is win98,My device is a usb device,I use it to virtual a com port.
Now I have implement a USB driver and a serial driver ON win98,and I call the CM_Create_DevNode function to create a com device node in usb driver.I hope can implement the com port PNP function with this method.But I need to choosing a com port number.so I ask this question.

Best Regards,
Black

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Thursday, April 10, 2003 12:41 AM
Subject: [ntdev] RE: How to get the com port count in kernel mode

> On which OS are you using CM_Create_DevNode to create the port?
>
> d
>
> -----Original Message-----
> From: Black Lee [mailto:xxxxx@21cn.com]
> Sent: Tuesday, April 08, 2003 10:02 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: How to get the com port count in kernel mode
>
> Thanks for you response,
>
> Because I have writed a com port enumerator to emum my com port.I have to confirm there is how many com port on the system.So that my com enumerator can
> create new device node(CM_Create_DevNode) for my com port use the last com number.for example if the system have com1 and com2,I will create the com number is com3.Thus I have to enum all com port on system,I want to search registry to find the current com port number,But it seem too trouble.
>
> Do you have any advise.
>
> Best Regards,
> Black
>
> ----- Original Message -----
> From: “Doron Holan”
> To: “NT Developers Interest List”
> Sent: Wednesday, April 09, 2003 12:14 PM
> Subject: [ntdev] RE: How to get the com port count in kernel mode
>
>
> This is a very unreliable method to determine the com port number you want to expose. Consider that a modem is not plugged in when you determine the com port number and you use the same com port number as the modem. When the modem is plugged in, the modem no longer works. On windows 2000, if you install under the ports device class, a unique com number will be installed for you upon device installation. If you install under your own device class, then there are APIs which you can call in your device installer DLL which will give you a unique com name.
>
> You can retrieve this com number by calling IoOpenDeviceRegistryKey in IRP_MN_START_DEVICE to open the device instance key and then query for the value “PortName”, which will be returned to you as a string, in the form of “COMX”, where X is a decimal value. You don’t actually have to inspect the value that is returned, all you need to do is append the value to "\DosDevices" and create the symbolic link with that string.
>
> As for win98, you are on your own. Perhaps some devs who are more familiar with ccport know of a solution for that platform.
>
> D
>
> This posting is provided “AS IS” with no warranties, and confers no rights.
>
>
> From: Black Lee [mailto:xxxxx@21cn.com]
> Sent: Tuesday, April 08, 2003 8:48 PM
> To: NT Developers Interest List
> Dear All,
>
> Anybody can point me how to get the com port count in kernel mode.I am writing a virtual com port driver for win98 and win2000,I need to get the curren com port number and create my com port number.If the config manager function can used to implement it?
>
> Any advise will be appreciated!
>
> Best Regards,
> Black
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@21cn.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
> b­®¶¹®vµj®Â£‰²r¢¹®±ižj¢½u÷–²
> bvj{N rzǧujy器^j ^ yb ((
bvj£riju

Because, as you pointed out with the modem example, certain applications
expect to communicate with devices on specific COM ports. As our customers
migrate to a newer OS, they still need for their applications to properly
execute, and sometimes, if not often, an unfortunate side effect of this is
that they require the ability to do so on specific COM ports. Since these
folks butter our bread we need to accommodate them in a windows environment
and attempt to find solutions which allows them to do this.

“Doron Holan” wrote in message
news:xxxxx@ntdev…
> Typing “com port enumeration windows 98” into google, I got the following
2 hits rather quickly:
>
> http://www.codeproject.com/system/listports.asp
> http://www.codeproject.com/system/enumports.asp
>
> Why can you not use the devnode created for your usb device for the com
port? This way there is no need to manually create another one.
>
> d
>
> This posting is provided “AS IS” with no warranties, and confers no rights
>

This key value is undocumented and should not be inspected or changed
w/out using the ComDB apis (which provide synchronization to the
writes). The comdb is only present on win2k/xp/server 2003. It is not
available on win9x systems.

D

This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: Del Fredricks [mailto:xxxxx@ask.i.might.tell]
Sent: Wednesday, April 09, 2003 10:00 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to get the com port count in kernel mode

I’m not sure about Win98 or Win2000, but look at the
${DDKHome|}\src\setup\pnpport sample in the ddk. It demonstrates using
ComDB functions, which may only be present in the latest DDK and
functional
in WinXP. I currently am using these functions under WinXP, but am see
double COM number usage, probably because of the port class assignment
Doron
mentioned, hence my desire like Mr. Lee to control all COM number
assignments for my port.

I do know that the ComDB value under
“HLKM\System\CurrentControlSet\Control\Com Name Arbiter” is a bit masked
key
used in Win2000 and WinXP to determine what COM numbers have been
assigned.

It’d have to be 9X… in

“I want to search registry to find the current com port number,But it seem
too trouble.”
Its really not that much trouble.

Under 9X the only way to do it is to look in the registry and enumerate the
serial device map key.

If you can find the elusive ‘POSUSB’ sample microsoft UK pulled a while back
all the code is in there, along with a wealth of other information you’ll
need to complete your driver.
(There is also code in there for NT too… :wink: I’m actually finishing up the
NT Com Arbiter stuff in my multi virtual serial over USB driver as I write
this)

Rob Linegar
Software Engineer
Data Encryption Systems Limited

-----Original Message-----
From: Doron Holan [mailto:xxxxx@windows.microsoft.com]
Sent: 09 April 2003 17:42
To: NT Developers Interest List
Subject: [ntdev] RE: How to get the com port count in kernel mode

On which OS are you using CM_Create_DevNode to create the port?

d

-----Original Message-----
From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 10:02 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to get the com port count in kernel mode

Thanks for you response,

Because I have writed a com port enumerator to emum my com port.I have to
confirm there is how many com port on the system.So that my com enumerator
can
create new device node(CM_Create_DevNode) for my com port use the last com
number.for example if the system have com1 and com2,I will create the com
number is com3.Thus I have to enum all com port on system,I want to search
registry to find the current com port number,But it seem too trouble.

Do you have any advise.

Best Regards,
Black

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, April 09, 2003 12:14 PM
Subject: [ntdev] RE: How to get the com port count in kernel mode

This is a very unreliable method to determine the com port number you want
to expose. Consider that a modem is not plugged in when you determine the
com port number and you use the same com port number as the modem. When the
modem is plugged in, the modem no longer works. On windows 2000, if you
install under the ports device class, a unique com number will be installed
for you upon device installation. If you install under your own device
class, then there are APIs which you can call in your device installer DLL
which will give you a unique com name.

You can retrieve this com number by calling IoOpenDeviceRegistryKey in
IRP_MN_START_DEVICE to open the device instance key and then query for the
value “PortName”, which will be returned to you as a string, in the form of
“COMX”, where X is a decimal value. You don’t actually have to inspect the
value that is returned, all you need to do is append the value to
"\DosDevices" and create the symbolic link with that string.

As for win98, you are on your own. Perhaps some devs who are more familiar
with ccport know of a solution for that platform.

D

This posting is provided “AS IS” with no warranties, and confers no rights.

From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 8:48 PM
To: NT Developers Interest List
Dear All,

Anybody can point me how to get the com port count in kernel mode.I am
writing a virtual com port driver for win98 and win2000,I need to get the
curren com port number and create my com port number.If the config manager
function can used to implement it?

Any advise will be appreciated!

Best Regards,
Black


You are currently subscribed to ntdev as: xxxxx@21cn.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
b­®¶¹®vµj®Â£‰²r¢¹®±ižj¢½u÷–²
b.ஷ&v’ׯj
m׬rNrzǧujy٨^j秵M±ಋ+

Thanks for all response,

I have implemented this function by reserch registry.

Thanks Rob,the ‘POSUSB’ is so useful.

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Thursday, April 10, 2003 5:08 PM
Subject: [ntdev] RE: How to get the com port count in kernel mode

It’d have to be 9X… in

“I want to search registry to find the current com port number,But it seem
too trouble.”
Its really not that much trouble.

Under 9X the only way to do it is to look in the registry and enumerate the
serial device map key.

If you can find the elusive ‘POSUSB’ sample microsoft UK pulled a while back
all the code is in there, along with a wealth of other information you’ll
need to complete your driver.
(There is also code in there for NT too… :wink: I’m actually finishing up the
NT Com Arbiter stuff in my multi virtual serial over USB driver as I write
this)

Rob Linegar
Software Engineer
Data Encryption Systems Limited

-----Original Message-----
From: Doron Holan [mailto:xxxxx@windows.microsoft.com]
Sent: 09 April 2003 17:42
To: NT Developers Interest List
Subject: [ntdev] RE: How to get the com port count in kernel mode

On which OS are you using CM_Create_DevNode to create the port?

d

-----Original Message-----
From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 10:02 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to get the com port count in kernel mode

Thanks for you response,

Because I have writed a com port enumerator to emum my com port.I have to
confirm there is how many com port on the system.So that my com enumerator
can
create new device node(CM_Create_DevNode) for my com port use the last com
number.for example if the system have com1 and com2,I will create the com
number is com3.Thus I have to enum all com port on system,I want to search
registry to find the current com port number,But it seem too trouble.

Do you have any advise.

Best Regards,
Black

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, April 09, 2003 12:14 PM
Subject: [ntdev] RE: How to get the com port count in kernel mode

This is a very unreliable method to determine the com port number you want
to expose. Consider that a modem is not plugged in when you determine the
com port number and you use the same com port number as the modem. When the
modem is plugged in, the modem no longer works. On windows 2000, if you
install under the ports device class, a unique com number will be installed
for you upon device installation. If you install under your own device
class, then there are APIs which you can call in your device installer DLL
which will give you a unique com name.

You can retrieve this com number by calling IoOpenDeviceRegistryKey in
IRP_MN_START_DEVICE to open the device instance key and then query for the
value “PortName”, which will be returned to you as a string, in the form of
“COMX”, where X is a decimal value. You don’t actually have to inspect the
value that is returned, all you need to do is append the value to
"\DosDevices" and create the symbolic link with that string.

As for win98, you are on your own. Perhaps some devs who are more familiar
with ccport know of a solution for that platform.

D

This posting is provided “AS IS” with no warranties, and confers no rights.

From: Black Lee [mailto:xxxxx@21cn.com]
Sent: Tuesday, April 08, 2003 8:48 PM
To: NT Developers Interest List
Dear All,

Anybody can point me how to get the com port count in kernel mode.I am
writing a virtual com port driver for win98 and win2000,I need to get the
curren com port number and create my com port number.If the config manager
function can used to implement it?

Any advise will be appreciated!

Best Regards,
Black


You are currently subscribed to ntdev as: xxxxx@21cn.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
b­®¶¹®vµj®Â£‰²r¢¹®±ižj¢½u÷–²
b.ஷ&v’ׯj
m׬rNrzǧujy٨^j秵M±ಋ+


You are currently subscribed to ntdev as: xxxxx@21cn.com
To unsubscribe send a blank email to xxxxx@lists.osr.com