Device description string not from the inf file

Hi

I have bus driver that create virtual devices,
it use string as generated string (base on the GUID of the device ) as
device description.

But when I install the appropriate driver (from the inf file )
The device description changed and Windows use the from the inf (which
is more globally)

For example :

If these are the line in the inf:
[xx.DeviceSection.ntx86]
%xx.DeviceDesc% = xx.DDInstall,…

[Strings]
xx.DeviceDesc = “Global device description”

Windows will use
“Global device description” as device description.

I wont Windows to continue using my old (and more accurate) device
description.

Does any one know a way to do that?

Thanks
Yossi

Yossi Leybovich wrote:

I have bus driver that create virtual devices, it use string
as generated string (base on the GUID of the device ) as
device description.
But when I install the appropriate driver (from the inf file )
The device description changed and Windows use the from
the inf (which is more globally)

According to the toaster sample, you can create a FriendlyName in your coinstaller that takes precedence over DeviceDesc from the INF file. This is probably what you want.

Thanks

Do you think the FriendlyName will show up in the device manager windows
.
I think I need to set the device description SPDRP_DEVICEDESC (which is
not allowed to be change in SetupDiSetDeviceRegistryProperty).

Can I call this function from the DriverEntry or just from Co-installer
?

Yossi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Saturday, December 23, 2006 9:39 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Device description string not from the inf file

Yossi Leybovich wrote:

> I have bus driver that create virtual devices, it use string as
> generated string (base on the GUID of the device ) as device
> description.
> But when I install the appropriate driver (from the inf file ) The
> device description changed and Windows use the from the inf
(which is
> more globally)

According to the toaster sample, you can create a
FriendlyName in your coinstaller that takes precedence over
DeviceDesc from the INF file. This is probably what you want.


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

The property you want to set is SPDRP_FRIENDLYNAME. You can only do this from a user mode coinstaller, not from a driver. The friendly name will be displayed by device manager and will take precedence over the device description.

d