Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DataGridRow.cs
- DynamicPropertyHolder.cs
- KnownTypeAttribute.cs
- MediaElement.cs
- Endpoint.cs
- TableLayoutColumnStyleCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- CodeDirectoryCompiler.cs
- PlaceHolder.cs
- XamlStream.cs
- CommonRemoteMemoryBlock.cs
- RectangleConverter.cs
- ThreadSafeList.cs
- DesignerActionUIStateChangeEventArgs.cs
- Point3DAnimationBase.cs
- AdvancedBindingPropertyDescriptor.cs
- CodeVariableReferenceExpression.cs
- DropSourceBehavior.cs
- ItemsControlAutomationPeer.cs
- WmlLiteralTextAdapter.cs
- TokenBasedSet.cs
- DefaultHttpHandler.cs
- PingReply.cs
- TextSpan.cs
- _TLSstream.cs
- TickBar.cs
- ReferentialConstraint.cs
- InvokeSchedule.cs
- BuiltInPermissionSets.cs
- ExtendedTransformFactory.cs
- JobCollate.cs
- WindowsEditBoxRange.cs
- HandleRef.cs
- ContentElementCollection.cs
- SemaphoreFullException.cs
- InstanceNotReadyException.cs
- ISFClipboardData.cs
- MetadataHelper.cs
- TypeDependencyAttribute.cs
- PageHandlerFactory.cs
- SignedXml.cs
- TreeNodeCollection.cs
- CollectionViewGroupInternal.cs
- WindowsGraphicsCacheManager.cs
- XmlTextReaderImpl.cs
- BitmapEffectState.cs
- WebControlAdapter.cs
- PropertySourceInfo.cs
- HtmlElement.cs
- ControlEvent.cs
- MultiView.cs
- ContentType.cs
- SortedSetDebugView.cs
- RuntimeCompatibilityAttribute.cs
- PropertyCondition.cs
- StringFunctions.cs
- ObjectSpanRewriter.cs
- SessionStateUtil.cs
- WindowsStatic.cs
- GridItem.cs
- BasicViewGenerator.cs
- WCFBuildProvider.cs
- LinearKeyFrames.cs
- XmlFormatExtensionPrefixAttribute.cs
- CodeAttachEventStatement.cs
- NameValueConfigurationCollection.cs
- RemotingConfiguration.cs
- ImageSourceConverter.cs
- HttpApplication.cs
- Qualifier.cs
- EastAsianLunisolarCalendar.cs
- ZipIORawDataFileBlock.cs
- ExcCanonicalXml.cs
- TabControlAutomationPeer.cs
- IdentityModelStringsVersion1.cs
- TypeUtil.cs
- ResourceDictionary.cs
- ContextQuery.cs
- LogicalExpressionTypeConverter.cs
- ClientTargetCollection.cs
- TextDecorationCollection.cs
- AttributedMetaModel.cs
- NegationPusher.cs
- MessageSmuggler.cs
- RelationshipDetailsCollection.cs
- DetailsViewUpdatedEventArgs.cs
- AddingNewEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- ItemChangedEventArgs.cs
- TransformValueSerializer.cs
- DataGridColumnCollection.cs
- ToolboxDataAttribute.cs
- BindingOperations.cs
- DataGridViewCellStyleChangedEventArgs.cs
- NavigationWindowAutomationPeer.cs
- SslStream.cs
- TextDecorations.cs
- TypeUnloadedException.cs
- DBParameter.cs
- SortedList.cs