Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Registry.cs / 1606164 / Registry.cs
using System; using MS.Internal; using MS.Internal.WindowsBase; using System.Security; using System.Security.Permissions; using Microsoft.Win32; //****** // Keep in [....] with host\Inc\Registry.hxx namespace MS.Internal { [FriendAccessAllowed] internal static class RegistryKeys { internal const string WPF = @"Software\Microsoft\.NETFramework\Windows Presentation Foundation", WPF_Features = WPF+"\\Features", value_MediaImageDisallow = "MediaImageDisallow", value_MediaVideoDisallow = "MediaVideoDisallow", value_MediaAudioDisallow = "MediaAudioDisallow", value_WebBrowserDisallow = "WebBrowserDisallow", value_ScriptInteropDisallow = "ScriptInteropDisallow", value_AutomationWeakReferenceDisallow = "AutomationWeakReferenceDisallow", WPF_Hosting = WPF+"\\Hosting", value_DisableXbapErrorPage = "DisableXbapErrorPage", value_UnblockWebBrowserControl = "UnblockWebBrowserControl", HKCU_XpsViewer = @"HKEY_CURRENT_USER\Software\Microsoft\XPSViewer", value_IsolatedStorageUserQuota = "IsolatedStorageUserQuota", HKLM_XpsViewerLocalServer32 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\{7DDA204B-2097-47C9-8323-C40BB840AE44}\\LocalServer32", HKLM_IetfLanguage = @"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\IetfLanguage", // These constants are cloned in // wpf\src\Shared\Cpp\Utils.cxx // Should these reg keys change the above file should be also modified to reflect that. FRAMEWORK_RegKey = @"Software\Microsoft\Net Framework Setup\NDP\v4\Client\", FRAMEWORK_RegKey_FullPath = @"HKEY_LOCAL_MACHINE\" + FRAMEWORK_RegKey, FRAMEWORK_InstallPath_RegValue = "InstallPath"; ////// Critical: Reads an arbitrary registry key. /// [SecurityCritical] internal static bool ReadLocalMachineBool(string key, string valueName) { string keyPath = "HKEY_LOCAL_MACHINE\\" + key; new RegistryPermission(RegistryPermissionAccess.Read, keyPath).Assert(); object value = Registry.GetValue(keyPath, valueName, null); return value is int && (int)value != 0; } }; } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NamedElement.cs
- LockedHandleGlyph.cs
- RsaSecurityKey.cs
- MetadataPropertyvalue.cs
- AlphabeticalEnumConverter.cs
- CompilationUtil.cs
- Compiler.cs
- Scheduling.cs
- FontStretch.cs
- XamlHostingSection.cs
- XmlSchemaAny.cs
- ReaderOutput.cs
- DependencyPropertyConverter.cs
- FactoryMaker.cs
- XmlUtilWriter.cs
- XmlStringTable.cs
- FailedToStartupUIException.cs
- xdrvalidator.cs
- NameValueConfigurationElement.cs
- MetadataArtifactLoader.cs
- CellQuery.cs
- ALinqExpressionVisitor.cs
- odbcmetadatacollectionnames.cs
- InstanceDescriptor.cs
- MetadataSerializer.cs
- UpDownBase.cs
- ISO2022Encoding.cs
- SeverityFilter.cs
- CodeDelegateCreateExpression.cs
- oledbmetadatacollectionnames.cs
- ConditionalAttribute.cs
- Int32.cs
- SqlClientWrapperSmiStreamChars.cs
- KeyEvent.cs
- ipaddressinformationcollection.cs
- WindowsRebar.cs
- WebBaseEventKeyComparer.cs
- SR.Designer.cs
- ToolStripItemImageRenderEventArgs.cs
- SQLGuidStorage.cs
- StringUtil.cs
- HtmlInputReset.cs
- Stopwatch.cs
- RegexGroupCollection.cs
- XmlSchemaImporter.cs
- TextElementEnumerator.cs
- ItemDragEvent.cs
- SetStoryboardSpeedRatio.cs
- UncommonField.cs
- DbUpdateCommandTree.cs
- DelegatingStream.cs
- WindowsAuthenticationModule.cs
- ConfigPathUtility.cs
- Identifier.cs
- DataErrorValidationRule.cs
- Label.cs
- TimeSpanValidator.cs
- Repeater.cs
- ListMarkerLine.cs
- WebPartZone.cs
- ConfigurationLocationCollection.cs
- DetailsViewAutoFormat.cs
- FrameworkRichTextComposition.cs
- HttpContextServiceHost.cs
- NotCondition.cs
- JsonByteArrayDataContract.cs
- Geometry3D.cs
- SafeTimerHandle.cs
- CustomAttribute.cs
- DataGridViewCellEventArgs.cs
- CollectionExtensions.cs
- DefaultProxySection.cs
- ParserHooks.cs
- TextHidden.cs
- LocatorGroup.cs
- DataShape.cs
- Simplifier.cs
- KeyInstance.cs
- SiteIdentityPermission.cs
- JapaneseLunisolarCalendar.cs
- InputElement.cs
- documentsequencetextpointer.cs
- DllNotFoundException.cs
- XPathNavigator.cs
- EncoderParameter.cs
- XmlSerializerFactory.cs
- SamlAudienceRestrictionCondition.cs
- DateTimeFormatInfoScanner.cs
- EntityReference.cs
- SubstitutionResponseElement.cs
- WindowsHyperlink.cs
- BitmapMetadataEnumerator.cs
- SerializationObjectManager.cs
- Merger.cs
- PageClientProxyGenerator.cs
- ImageList.cs
- DatagridviewDisplayedBandsData.cs
- SmiEventStream.cs
- Application.cs
- EntityContainerAssociationSet.cs