Get a Registry string value as a CString, MFC. Examples to get version of browsers.


/ Published in: C++
Save to your folder(s)

RegGetValue apparently isn't available in XP SP2. I tried and got an error. MSDN implied it wasn't available.

Example usage to get versions of browsers:

GetRegString( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Internet Explorer", "Version" );

GetRegString( HKEY_LOCAL_MACHINE, "Software\\Mozilla\\Mozilla Firefox", "CurrentVersion" );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.