Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputProcessorProfilesLoader.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlNamedNodeMap.cs
- AppAction.cs
- PEFileReader.cs
- MultiViewDesigner.cs
- EmbeddedMailObjectCollectionEditor.cs
- ProcessModelSection.cs
- IChannel.cs
- Decimal.cs
- DelayedRegex.cs
- ErrorReporting.cs
- FileSystemEventArgs.cs
- AppDomainAttributes.cs
- SmtpMail.cs
- DataControlLinkButton.cs
- VerticalConnector.xaml.cs
- HtmlTernaryTree.cs
- SystemIPInterfaceProperties.cs
- WebPartAddingEventArgs.cs
- SessionPageStatePersister.cs
- ArrayHelper.cs
- SignatureToken.cs
- xml.cs
- HttpHandlersInstallComponent.cs
- ValidationEventArgs.cs
- TransportConfigurationTypeElement.cs
- DBSchemaTable.cs
- PermissionToken.cs
- MinMaxParagraphWidth.cs
- MultiPropertyDescriptorGridEntry.cs
- ImageButton.cs
- TagMapCollection.cs
- CodeDirectiveCollection.cs
- PackageRelationship.cs
- WorkflowServiceHost.cs
- DataServices.cs
- XPathPatternParser.cs
- SystemTcpConnection.cs
- WindowsListViewItem.cs
- TempEnvironment.cs
- XmlTypeAttribute.cs
- WizardSideBarListControlItem.cs
- SizeChangedInfo.cs
- TableDetailsCollection.cs
- ValuePattern.cs
- UIElement3DAutomationPeer.cs
- DuplexChannel.cs
- BitArray.cs
- HttpHandlersSection.cs
- UpdatePanel.cs
- ReadOnlyDataSource.cs
- XPathSelfQuery.cs
- WsatEtwTraceListener.cs
- QilSortKey.cs
- CompensateDesigner.cs
- ShapeTypeface.cs
- XmlComplianceUtil.cs
- WebPartPersonalization.cs
- ProtocolElement.cs
- BaseCodePageEncoding.cs
- TypeSource.cs
- MailBnfHelper.cs
- SiteMembershipCondition.cs
- TransformCollection.cs
- DataBinding.cs
- RuleEngine.cs
- MetadataCollection.cs
- Typography.cs
- SafeNativeMethods.cs
- AxisAngleRotation3D.cs
- IDQuery.cs
- QueryContext.cs
- XmlLinkedNode.cs
- AttributedMetaModel.cs
- AttributeQuery.cs
- MediaElementAutomationPeer.cs
- SqlDataRecord.cs
- _LoggingObject.cs
- UnsafeNativeMethods.cs
- CollectionEditorDialog.cs
- SystemIdentity.cs
- TdsValueSetter.cs
- HtmlEmptyTagControlBuilder.cs
- MsmqIntegrationBindingCollectionElement.cs
- BitConverter.cs
- BamlVersionHeader.cs
- UrlPath.cs
- ExtractorMetadata.cs
- Rotation3D.cs
- WasAdminWrapper.cs
- ReflectTypeDescriptionProvider.cs
- XsltOutput.cs
- PagerSettings.cs
- ParseChildrenAsPropertiesAttribute.cs
- Icon.cs
- ExceptionHandler.cs
- ItemContainerGenerator.cs
- PreviewPageInfo.cs
- Operators.cs
- ActivitiesCollection.cs
- CustomTypeDescriptor.cs