In the Hood
C# :: 실행 중인 Office 2010이 32비트 버전인지 64비트 버전인지 알아내기
길버트리
2011. 9. 19. 18:38
////// 오피스의 비트를 반환합니다. (현재 오피스 2010만 지원) /// ///비트를 반환합니다. 정보를 얻을 수 없을 때는 0을 반환 public static int GetBitness() { string registryKey = "Software\\Microsoft\\Office\\14.0\\Outlook"; RegistryKey officeKey = Registry.LocalMachine.OpenSubKey(registryKey); if (officeKey != null) { string bitness = (string)officeKey.GetValue("Bitness"); switch (bitness) { case "x86": return 32; case "x64": return 64; } } return 0; }