Archive: WriteRegExpandStr


WriteRegExpandStr
I'd appreciate it if someone would explain what's the difference between WriteRegStr and WriteRegExpandStr.

Thanks,

Fred Chateau


Hi!

REG_EXPAND_SZ - A variable-length data string. This data type includes variables that are resolved when a program or service uses the data.

REG_SZ - A fixed-length text string.
I do not fully understand why it exists because you could use REG_SZ anyway, and you DO have to use ExpandEnvironmentStrings after reading the string according to MSDN...

KiCHiK