New Class value in Version section in .inf file behavior

New Class value in Version section in .inf file behavior

Post by U2Nvd » Wed, 17 Nov 2004 07:44:05


The DDK says:

"If an INF adds a new setup class of devices to the system, it should supply
a unique, case-insensitive class-name value that is different from any of the
system-supplied classes in devguid.h. The length of the class-name string
must be 32 characters or less. The INF must specify a newly generated GUID
value for the ClassGUID entry. Also see INF ClassInstall32 Section."

I'm wondering about some details of how this is used. Once I create a new
Class and corresponding ClassGUID for a given VID/PID, do I need to stick
with that GUID and/or name forever? I'd like to tweak a name I chose for a
previous product to make it consistent with a similar new product that should
logically be in the same class. Can I do that at all? If so, do I need to
create a new GUID to go with the changed name? If I change later versions of
the original product's .inf files will the OS be horribly confused?

-Scot
 
 
 

New Class value in Version section in .inf file behavior

Post by Doron Hola » Wed, 17 Nov 2004 16:49:43

once a name is associated with a class guid, it stays. if you want to
change it, you need to create a new class guid

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.

 
 
 

New Class value in Version section in .inf file behavior

Post by U2Nvd » Thu, 18 Nov 2004 04:28:04


Thanks, that is helpful -- I guess I have a followup question, which is, is
it okay to change the class and class guid associated with a particular .inf
file and VID/PID?

In other words, if I update the class name to be consistent with the new
product, the next time I release the original product I'm going to possibly
be replacing a user's .inf file for a certain VID/PID with a new .inf file
that has a different class guid. Is that okay?

-Scot
 
 
 

New Class value in Version section in .inf file behavior

Post by Doron Hola » Thu, 18 Nov 2004 17:13:13

if you resintall the device w/the new INF, i don't think it will be a big
deal, but, as always, you should test

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.