GetRegistryValue() public method

public GetRegistryValue ( RegistryKey key, string name ) : object
key Microsoft.Win32.RegistryKey
name string
return object
Esempio n. 1
0
        bool IsProfilerInstalled(RegistryKey inprocServer32Key, string expectedFileDesc)
        {
            if (inprocServer32Key == null)
            {
                return(false);
            }

            var profPath = (string)EnvironmentRepository.GetRegistryValue(inprocServer32Key, null);

            if (!EnvironmentRepository.ExistsFile(profPath))
            {
                return(false);
            }

            return(EnvironmentRepository.GetFileDescription(profPath) == expectedFileDesc);
        }