PDA

View Full Version : Registry.GetValue reading binary data


WallyWonka
05-28-2009, 10:35 AM
So I have a button in my project that will launch an application. I have to get the application directory from the registry, but the data is in binary form. How do I use Registry.GetValue to read a REG_BINARY entry?

PlayPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\My App", "dir", false);
File.Run(PlayPath.."\\App.exe", "", "", SW_SHOWNORMAL, true);

"dir" is in binary form and it has the directory info I need to launch the application. How do I get this to work? Thanks to anyone that can help.