Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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 : [....] - 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
- EncodingConverter.cs
- RawContentTypeMapper.cs
- DataGridViewLinkColumn.cs
- ReadOnlyDictionary.cs
- DataSourceCollectionBase.cs
- TypeElement.cs
- ConfigurationValidatorBase.cs
- XmlException.cs
- WebControlAdapter.cs
- SectionUpdates.cs
- IDQuery.cs
- Evaluator.cs
- FragmentQueryKB.cs
- _DynamicWinsockMethods.cs
- HyperLinkField.cs
- Style.cs
- HashCodeCombiner.cs
- RefType.cs
- WindowsAltTab.cs
- IPipelineRuntime.cs
- EmbeddedMailObject.cs
- SqlParameterizer.cs
- WinInet.cs
- EventSinkHelperWriter.cs
- Misc.cs
- DataColumnMappingCollection.cs
- LoginName.cs
- XmlQualifiedNameTest.cs
- DiscoveryExceptionDictionary.cs
- DrawingContextWalker.cs
- COAUTHINFO.cs
- ProjectionAnalyzer.cs
- BuildProvidersCompiler.cs
- StringWriter.cs
- Point3DConverter.cs
- FactoryGenerator.cs
- WebPartEventArgs.cs
- LinqToSqlWrapper.cs
- DeviceSpecific.cs
- OleDbInfoMessageEvent.cs
- ComponentConverter.cs
- ToolTipService.cs
- TextParagraphCache.cs
- UnsafeNativeMethods.cs
- PageTheme.cs
- Help.cs
- ITextView.cs
- BrushConverter.cs
- FilterFactory.cs
- XPathArrayIterator.cs
- WebPartMinimizeVerb.cs
- WorkflowRuntimeServicesBehavior.cs
- FlagsAttribute.cs
- LocationUpdates.cs
- OutputWindow.cs
- XmlAttributes.cs
- XmlQueryStaticData.cs
- HtmlControlPersistable.cs
- DockPanel.cs
- BuildManagerHost.cs
- DefaultMemberAttribute.cs
- HttpCookieCollection.cs
- HttpInputStream.cs
- TemplatePagerField.cs
- FreezableDefaultValueFactory.cs
- oledbmetadatacollectionnames.cs
- RootDesignerSerializerAttribute.cs
- ImageMap.cs
- RegexRunner.cs
- SystemIPInterfaceStatistics.cs
- DynamicRendererThreadManager.cs
- SetIterators.cs
- PackageRelationshipSelector.cs
- RightsManagementResourceHelper.cs
- PreDigestedSignedInfo.cs
- ToolStripItemEventArgs.cs
- DateTimeSerializationSection.cs
- GroupBox.cs
- PrinterSettings.cs
- DeferredRunTextReference.cs
- ConsoleTraceListener.cs
- DataGridViewColumnCollection.cs
- BuilderPropertyEntry.cs
- ScriptResourceHandler.cs
- ReplyChannel.cs
- StreamGeometry.cs
- SafeEventLogWriteHandle.cs
- QilStrConcat.cs
- DbFunctionCommandTree.cs
- MembershipValidatePasswordEventArgs.cs
- RenderingBiasValidation.cs
- ToolStripItemTextRenderEventArgs.cs
- Debug.cs
- VectorConverter.cs
- DataContractSerializerOperationBehavior.cs
- XmlCustomFormatter.cs
- CultureInfoConverter.cs
- DataSourceControl.cs
- VisualBasicSettingsHandler.cs
- EdmToObjectNamespaceMap.cs