I have a registry entry e.g. LocalizedString=@%programfiles%\Internet Explorer\iexplore.exe,-702
Is there a known API to extract the path and the string other than custom-ally parse it (and use LoadString
)?
And then I have a defult value e.g. (default)="%programfiles%\Internet Explorer\iexplore.exe"
(including the double-quotes, but without the @
);
How does Windows handle this stuff?
The API function you need is called RegLoadMUIStringW. This is a Vista API so if you want to support XP you'll need to parse the registry entry manually.
Update: Actually, SHLoadIndirectString looks like it could be your XP saviour.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With