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@reactos.com http://reactos.com:8080/mailman/listinfo/ros-dev