- How to Get Free USB HCD Port Number
- Posted by Neo on March 17th, 2008
Hi,
i am writing a USB Device Enumerator, and want make it visible in
USBVIEW.
To Achieve that, i need to assign a Free HCD Number to my enumerator,
eg HCD5 so that the USBVIEW can open it with //./HCD6.
Now, my question is how can i get a free HCD number in a windows
XP,Windows Vista.
Thanks and Regards,
Neo
- Posted by Maxim S. Shatskih on March 17th, 2008
Try to create the \\.\HCD0. \\.\HCD1 and so on, while the creation status
will be STATUS_OBJECT_NAME_COLLISION
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Neo" <rksandilya@gmail.com> wrote in message
news:91eb867b-4faf-4c92-b72e-f7db0ab28e0f@s8g2000prg.googlegroups.com...
- Posted by Neo on March 18th, 2008
Hi Mr. Maxim S. Shatskih,
Thank you very much, i thought there is an entry in the registry like
COMDB for COM Ports from where i can get it, but anyway this was also
a big help.
Thanks a lot !
Regards,
Neo
On Mar 17, 8:41*pm, "Maxim S. Shatskih" <ma...@storagecraft.com>
wrote:
- Posted by Maxim S. Shatskih on March 18th, 2008
At least the \\.\PhysicalDrive%d symlinks are created the way I described.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Neo" <rksandilya@gmail.com> wrote in message
news:74410c35-c4e4-48ff-9066-66474f3dbe2b@i12g2000prf.googlegroups.com...
Hi Mr. Maxim S. Shatskih,
Thank you very much, i thought there is an entry in the registry like
COMDB for COM Ports from where i can get it, but anyway this was also
a big help.
Thanks a lot !
Regards,
Neo
On Mar 17, 8:41 pm, "Maxim S. Shatskih" <ma...@storagecraft.com>
wrote:
- Posted by Doron Holan [MSFT] on March 18th, 2008
no, there is no such DB. com ports are special b/c many different drivers
can create them, while USB HCD numbers are only created from one common
driver which can maintain its own state
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Neo" <rksandilya@gmail.com> wrote in message
news:74410c35-c4e4-48ff-9066-66474f3dbe2b@i12g2000prf.googlegroups.com...
Hi Mr. Maxim S. Shatskih,
Thank you very much, i thought there is an entry in the registry like
COMDB for COM Ports from where i can get it, but anyway this was also
a big help.
Thanks a lot !
Regards,
Neo
On Mar 17, 8:41 pm, "Maxim S. Shatskih" <ma...@storagecraft.com>
wrote:
- Posted by Ben Voigt [C++ MVP] on March 19th, 2008
Doron Holan [MSFT] wrote:
I would tend to think that the difference is that COM port numbers persist
across reboots, while the \\.\HCDn names do not. Or do they?
- Posted by Doron Holan [MSFT] on March 19th, 2008
yes, that is also another attribute of com ports is that the same device
will have the same COMx name, unlike an HCD number which can vary from boot
to boot or plug in to plug in if it is hot pluggable
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ben Voigt [C++ MVP]" <rbv@nospam.nospam> wrote in message
news:OsR5klciIHA.3780@TK2MSFTNGP06.phx.gbl...