GetFileDescription() public method

public GetFileDescription ( string path ) : string
path string
return string
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);
        }