[ros-dev] RE: [ros-cvs] CVS Update: reactos

Anich Gregor blight at blight.eu.org
Fri Oct 1 16:10:32 CEST 2004


Doesn't the registry expand strings of type REG_EXPAND_SZ with environment 
vars, and leaves REG_SZ untouched? But still it tells the program which reads 
the key wether it is reading REG_SZ or REG_EXPAND_SZ and some lazy coders 
seem to rely on reading REG_SZ while we want the keys to be expanded so we 
have to make them REG_EXPAND_SZ which is why the programs fail?

So if we had another type, REG_FOO, we could make our registry code expand 
environment vars for this type, but return REG_SZ as type to the program 
instead of REG_FOO, or would that not work/be a bad idea?

-blight

On Friday 01 October 2004 14:27, Thomas Weidenmueller wrote:
> Anich Gregor wrote:
> >Hi!
> >
> >Maybe this is a stupid idea, don't know...
> >Wouldn't it be possible to use a special registry type which we use for
> > our strings with environment vars, which gets expanded but otherwise
> > looks like REG_SZ?
>
> The registry doesn't care about the content of a value. you can assign
> any type to it. However for this purpose there's REG_EXPAND_SZ
>
> Regards
> Thomas
> _______________________________________________
> Ros-dev mailing list
> Ros-dev at reactos.com
> http://reactos.com:8080/mailman/listinfo/ros-dev


More information about the Ros-dev mailing list