Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Setting/Changing the device name in Device Manager

Reply
Thread Tools Display Modes

Setting/Changing the device name in Device Manager

 
 
Mark McDougall
Guest
Posts: n/a

 
      04-19-2010
Hi,

How do I change the display name in Device Manager?

eg. serial ports show up as "Communications Port (COM1)" etc.

I have similar multiple devices which I'd like to name as "MyDev0"
"MyDev1" etc... (currently they show as the common name from the INF file)

Can this be done programmatically from the driver, or is there special INF
black magic required?

TIA
Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      04-19-2010
you can write a coinstaller which changes the friendly name at install time

d

--

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


"Mark McDougall" <> wrote in message
news:O84#...
> Hi,
>
> How do I change the display name in Device Manager?
>
> eg. serial ports show up as "Communications Port (COM1)" etc.
>
> I have similar multiple devices which I'd like to name as "MyDev0"
> "MyDev1" etc... (currently they show as the common name from the INF file)
>
> Can this be done programmatically from the driver, or is there special INF
> black magic required?
>
> TIA
> Regards,
>
> --
> Mark McDougall, Engineer
> Virtual Logic Pty Ltd, <http://www.vl.com.au>
> 21-25 King St, Rockdale, 2216
> Ph: +612-9599-3255 Fax: +612-9599-3266


 
Reply With Quote
 
Mark McDougall
Guest
Posts: n/a

 
      04-20-2010
Doron Holan [MSFT] wrote:

> you can write a coinstaller which changes the friendly name at install time


OK, thanks! I'll look into it.

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
 
Reply With Quote
 
Mark McDougall
Guest
Posts: n/a

 
      04-20-2010
Arghh...

I can set a "port number" in the PDO device extension when the bus driver
enumerates my child devices. This would, for example, correspond to the
UINumber in the registry. The coinstaller would pick up the UINumber so it
can set the friendly name - eg. MyDev0, MyDev1...

During AddDevice() in my child device driver, I need to assign the
symbolic name - eg. MYDEV0, MYDEV1... This, however, needs the same "port
number" or UINumber that was assigned during enumeration - but how do I
access this from the DeviceAdd()?

TIA!
Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
 
Reply With Quote
 
Mark McDougall
Guest
Posts: n/a

 
      04-20-2010

I should add that I'm writing a KMDF driver...

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
 
Reply With Quote
 
Pavel A.
Guest
Posts: n/a

 
      04-20-2010
"Mark McDougall" <> wrote in message
news:#...
............
> During AddDevice() in my child device driver, I need to assign the
> symbolic name - eg. MYDEV0, MYDEV1... This, however, needs the same "port
> number" or UINumber that was assigned during enumeration - but how do I
> access this from the DeviceAdd()?


You need to decide how you determine which device is which "port number" -
such as by PCI device & function, by i/o address, etc.
The driver may see the devices in any (read: random) order.
Also, decide what to do if some devices won't show up (holes in numbering?).

-- pa


 
Reply With Quote
 
Mark McDougall
Guest
Posts: n/a

 
      04-20-2010
Pavel A. wrote:

> You need to decide how you determine which device is which "port number" -


Got it sorted now.

The bus driver assigns the UINumber during enumeration which is stored in
the caps (and hence hardware registry).

The child driver then picks up the UINumber device property
(WdfDeviceQueryProperty) in AddDevice() and uses that to create the
symbolic link. Likewise, when it calls QueryInterface to get the physical
resources from the bus driver, it also reads the port number (again) from
the interface.

Hence the port number in the PDO matches the symbolic name of the FDO. Now
I just need to add the co-installer to change the friendly name in device
manager to also show the port number and everything will be consistent.

The enumeration is static. No missing ports. Closed system.

Thanks all!
Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My PnP Monitor is seen as Non PnP??? Colin Windows Vista Hardware 1 11-29-2007 05:01 PM
Device Type missing from Device Manager rjk42 Windows Vista Hardware 9 07-01-2007 11:52 AM
BUGCODE_USB_DRIVER with external USB HDD PHILIPS Deathwing00 Windows Vista Hardware 11 06-15-2007 07:02 PM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
Trouble with driver on Windows Vista Beta 2 sujatha Windows Vista Installation 0 06-08-2006 06:44 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59