REG_SZ String Value
-
Hey guys, I am writing a program that works with the registry. I have the following problem when I want to read REG_SZ values. I don't know how to separate the values correctly. Example: Key - HKEY_LOCAL_MACHINE\Software\Classes\AviFile\Shell\Play\Command ValueName - (Default) C:\Program Files\Windows Media Player\wmplayer.exe /prefetch:8 /Play "%L" Might appear also as "c:\program files\windows\media player\wmplayer.exe" /prefetch:8 /Play "%L" If I split the string using '"' or ' ' it won't work in all of the cases. It's not like with parsing command line arguments where you know that a path with spaces in it will have the correct punctuation. How does microsoft know how to parse these strings correctly?
-
Hey guys, I am writing a program that works with the registry. I have the following problem when I want to read REG_SZ values. I don't know how to separate the values correctly. Example: Key - HKEY_LOCAL_MACHINE\Software\Classes\AviFile\Shell\Play\Command ValueName - (Default) C:\Program Files\Windows Media Player\wmplayer.exe /prefetch:8 /Play "%L" Might appear also as "c:\program files\windows\media player\wmplayer.exe" /prefetch:8 /Play "%L" If I split the string using '"' or ' ' it won't work in all of the cases. It's not like with parsing command line arguments where you know that a path with spaces in it will have the correct punctuation. How does microsoft know how to parse these strings correctly?
-
mjmim wrote:
How does microsoft know how to parse these strings correctly?
I cannot confirm this but I read once that they have software developers working there.
led mike