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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbConnectionStringCommon.cs
- DataGridColumn.cs
- WebPartDisplayModeCollection.cs
- ScaleTransform.cs
- TypeUtil.cs
- MetadataPropertyAttribute.cs
- ProviderUtil.cs
- WorkflowViewService.cs
- PrintPreviewDialog.cs
- BindingMemberInfo.cs
- TransactionWaitAsyncResult.cs
- IMembershipProvider.cs
- DataTableMapping.cs
- FontWeights.cs
- FlowDocumentPageViewerAutomationPeer.cs
- MediaContextNotificationWindow.cs
- ParserExtension.cs
- DbConnectionPoolOptions.cs
- XmlILIndex.cs
- TextTreeNode.cs
- TableDesigner.cs
- WinFormsComponentEditor.cs
- TextBoxBaseDesigner.cs
- SiteMapSection.cs
- ExtractedStateEntry.cs
- ControlBuilder.cs
- XmlDesignerDataSourceView.cs
- PropertyGridView.cs
- GlyphRunDrawing.cs
- PcmConverter.cs
- ColorConverter.cs
- AsnEncodedData.cs
- VisualTransition.cs
- ScopedKnownTypes.cs
- ToolStripSeparatorRenderEventArgs.cs
- DoubleKeyFrameCollection.cs
- XpsInterleavingPolicy.cs
- SqlDataSource.cs
- SqlConnectionStringBuilder.cs
- StringAttributeCollection.cs
- ContainerUtilities.cs
- TreeNodeCollection.cs
- TrustSection.cs
- DataGridViewCellStyle.cs
- InkPresenter.cs
- HttpDebugHandler.cs
- EntityDataSourceEntitySetNameItem.cs
- ControlEvent.cs
- QueryStatement.cs
- TextBox.cs
- ContentPlaceHolderDesigner.cs
- SafeHandle.cs
- ModifyActivitiesPropertyDescriptor.cs
- GenerateHelper.cs
- ButtonChrome.cs
- ResourceBinder.cs
- DataShape.cs
- StringSource.cs
- DBBindings.cs
- Attributes.cs
- FixedSOMTable.cs
- PropertyValueChangedEvent.cs
- ExpressionBinding.cs
- XmlSchemaNotation.cs
- KnownTypes.cs
- PasswordRecoveryDesigner.cs
- AdornerPresentationContext.cs
- GeometryCollection.cs
- DiscoveryDocumentSerializer.cs
- XmlSchemaInclude.cs
- SecurityTokenAuthenticator.cs
- FrameworkObject.cs
- Activator.cs
- Component.cs
- PeerPresenceInfo.cs
- LinearGradientBrush.cs
- WhitespaceRuleReader.cs
- CheckBox.cs
- SqlProcedureAttribute.cs
- DynamicRendererThreadManager.cs
- XmlWrappingWriter.cs
- Decoder.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TypefaceMetricsCache.cs
- DataExpression.cs
- ProcessExitedException.cs
- TextServicesDisplayAttributePropertyRanges.cs
- EdmPropertyAttribute.cs
- _Win32.cs
- SrgsSubset.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BroadcastEventHelper.cs
- DrawingBrush.cs
- ClientScriptManagerWrapper.cs
- CqlLexer.cs
- ShapeTypeface.cs
- CodeAccessSecurityEngine.cs
- Model3DGroup.cs
- DbConnectionStringCommon.cs
- XmlConvert.cs