Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / InputProcessorProfilesLoader.cs / 1 / InputProcessorProfilesLoader.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Creates ITfThreadMgr instances, the root object of the Text // Services Framework. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 using System; using System.Runtime.InteropServices; using System.Security.Permissions; using System.Security; using System.Threading; using Microsoft.Win32; using System.Diagnostics; using MS.Win32; namespace System.Windows.Input { //----------------------------------------------------- // // InputProcessorProfilesLoader class // //----------------------------------------------------- ////// Loads an instance of the Text Services Framework. /// internal static class InputProcessorProfilesLoader { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- #region Constructors #endregion Constructors //------------------------------------------------------ // // Internal Properties // //------------------------------------------------------ #region Internal Properties ////// Loads an instance of the Text Services Framework. /// ////// May return null if no text services are available. /// ////// Critical - calls unmanaged code to load the input profiles, returns unmanaged object /// [SecurityCritical] internal static UnsafeNativeMethods.ITfInputProcessorProfiles Load() { UnsafeNativeMethods.ITfInputProcessorProfiles obj; Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "Load called on MTA thread!"); // // Bug#1212202 // // Presharp warn this though UnsafeNativeMethods.TF_CreateInputProcessorProfiles() does not have // SetLastError attribute. // We think this is a false alarm of Presharp. // #pragma warning suppress 6523 if (UnsafeNativeMethods.TF_CreateInputProcessorProfiles(out obj) == NativeMethods.S_OK) { return obj; } return null; } #endregion Internal Properties } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Creates ITfThreadMgr instances, the root object of the Text // Services Framework. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 using System; using System.Runtime.InteropServices; using System.Security.Permissions; using System.Security; using System.Threading; using Microsoft.Win32; using System.Diagnostics; using MS.Win32; namespace System.Windows.Input { //----------------------------------------------------- // // InputProcessorProfilesLoader class // //----------------------------------------------------- ////// Loads an instance of the Text Services Framework. /// internal static class InputProcessorProfilesLoader { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- #region Constructors #endregion Constructors //------------------------------------------------------ // // Internal Properties // //------------------------------------------------------ #region Internal Properties ////// Loads an instance of the Text Services Framework. /// ////// May return null if no text services are available. /// ////// Critical - calls unmanaged code to load the input profiles, returns unmanaged object /// [SecurityCritical] internal static UnsafeNativeMethods.ITfInputProcessorProfiles Load() { UnsafeNativeMethods.ITfInputProcessorProfiles obj; Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "Load called on MTA thread!"); // // Bug#1212202 // // Presharp warn this though UnsafeNativeMethods.TF_CreateInputProcessorProfiles() does not have // SetLastError attribute. // We think this is a false alarm of Presharp. // #pragma warning suppress 6523 if (UnsafeNativeMethods.TF_CreateInputProcessorProfiles(out obj) == NativeMethods.S_OK) { return obj; } return null; } #endregion Internal Properties } } // 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
- KeyValueInternalCollection.cs
- XmlILOptimizerVisitor.cs
- Scene3D.cs
- PathSegmentCollection.cs
- Matrix.cs
- ValidatedControlConverter.cs
- NamedElement.cs
- DataGridViewRowPostPaintEventArgs.cs
- Validator.cs
- UserPreferenceChangedEventArgs.cs
- CreateRefExpr.cs
- EntityDataSourceValidationException.cs
- GlyphElement.cs
- ModuleBuilderData.cs
- AuthenticationServiceManager.cs
- FontUnit.cs
- ContravarianceAdapter.cs
- HtmlImage.cs
- TextEditorSpelling.cs
- DataGridItem.cs
- ZoneIdentityPermission.cs
- BindingWorker.cs
- InternalConfigRoot.cs
- ConfigurationSettings.cs
- ErrorWrapper.cs
- SmiTypedGetterSetter.cs
- DocumentXmlWriter.cs
- SecurityProtocol.cs
- MsmqIntegrationSecurityMode.cs
- FlowPosition.cs
- ApplicationDirectory.cs
- DescendantOverDescendantQuery.cs
- WindowsStartMenu.cs
- METAHEADER.cs
- EntityCommandDefinition.cs
- QilPatternVisitor.cs
- DesignerValidationSummaryAdapter.cs
- HelpEvent.cs
- TreeNodeEventArgs.cs
- EventLogPermission.cs
- PerformanceCounterScope.cs
- DataControlReference.cs
- HttpInputStream.cs
- SettingsSavedEventArgs.cs
- XmlSerializerVersionAttribute.cs
- TypeElement.cs
- TraceHandler.cs
- DoubleConverter.cs
- SystemMulticastIPAddressInformation.cs
- mda.cs
- MimeMultiPart.cs
- EventListener.cs
- AddressingProperty.cs
- JsonQueryStringConverter.cs
- DataTablePropertyDescriptor.cs
- SqlCommandBuilder.cs
- AttributeProviderAttribute.cs
- Region.cs
- PathFigure.cs
- DataGridViewCellFormattingEventArgs.cs
- Pool.cs
- ZipPackage.cs
- DbProviderFactoriesConfigurationHandler.cs
- HotSpotCollectionEditor.cs
- TextServicesPropertyRanges.cs
- PublisherIdentityPermission.cs
- ByteAnimationBase.cs
- CodeMemberMethod.cs
- OptimalBreakSession.cs
- MetadataCache.cs
- DataShape.cs
- MessageSmuggler.cs
- Compilation.cs
- Clock.cs
- PropertyBuilder.cs
- GeometryCombineModeValidation.cs
- TimerEventSubscription.cs
- ParameterModifier.cs
- HyperLinkDataBindingHandler.cs
- MessageBox.cs
- TdsParserStateObject.cs
- AnnotationObservableCollection.cs
- EncoderFallback.cs
- MeshGeometry3D.cs
- dataprotectionpermissionattribute.cs
- AssemblyAttributesGoHere.cs
- DataGridViewDesigner.cs
- ScrollPatternIdentifiers.cs
- SchemaAttDef.cs
- EdmItemCollection.cs
- SourceLocationProvider.cs
- CustomSignedXml.cs
- RuntimeConfig.cs
- KerberosReceiverSecurityToken.cs
- AsymmetricKeyExchangeDeformatter.cs
- TabControl.cs
- NamespaceQuery.cs
- HttpCachePolicy.cs
- FacetEnabledSchemaElement.cs
- X500Name.cs