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
- BoundColumn.cs
- PageRequestManager.cs
- DataControlImageButton.cs
- ListViewCancelEventArgs.cs
- ShapingEngine.cs
- HtmlInputHidden.cs
- CollaborationHelperFunctions.cs
- XmlnsPrefixAttribute.cs
- PolicyLevel.cs
- LogSwitch.cs
- ExpressionVisitor.cs
- SizeChangedEventArgs.cs
- SemaphoreSecurity.cs
- HttpFileCollectionBase.cs
- BuildManagerHost.cs
- EpmSyndicationContentDeSerializer.cs
- MimeAnyImporter.cs
- BaseDataListComponentEditor.cs
- ObjectQueryExecutionPlan.cs
- StateBag.cs
- ControlCollection.cs
- codemethodreferenceexpression.cs
- LinkLabel.cs
- OutputCacheProfile.cs
- MessageLoggingFilterTraceRecord.cs
- KnownIds.cs
- validationstate.cs
- SubclassTypeValidator.cs
- GroupLabel.cs
- AppDomainProtocolHandler.cs
- UnsafeNetInfoNativeMethods.cs
- ToolStripLocationCancelEventArgs.cs
- MessageFilterTable.cs
- NameNode.cs
- GridViewHeaderRowPresenter.cs
- TaiwanLunisolarCalendar.cs
- DoubleStorage.cs
- AssemblyCache.cs
- StreamBodyWriter.cs
- X509Certificate2.cs
- NavigationFailedEventArgs.cs
- MouseButton.cs
- TreeViewHitTestInfo.cs
- FormattedTextSymbols.cs
- ValidatorCollection.cs
- Context.cs
- Transactions.cs
- AsyncCompletedEventArgs.cs
- CustomAttributeBuilder.cs
- EntityCommandExecutionException.cs
- TrustManagerPromptUI.cs
- InvalidOperationException.cs
- UserControl.cs
- RegistrationServices.cs
- BuildDependencySet.cs
- AVElementHelper.cs
- DebugViewWriter.cs
- hresults.cs
- EnlistmentState.cs
- RightsManagementEncryptedStream.cs
- SystemParameters.cs
- KeyValueInternalCollection.cs
- EditableTreeList.cs
- SortDescription.cs
- DataGridViewComboBoxCell.cs
- XmlQuerySequence.cs
- BlurEffect.cs
- IsolatedStorageException.cs
- OptimizerPatterns.cs
- VisualBasicValue.cs
- MetadataArtifactLoaderResource.cs
- NotifyIcon.cs
- DefaultDiscoveryService.cs
- activationcontext.cs
- BoundsDrawingContextWalker.cs
- RepeaterCommandEventArgs.cs
- ListViewDeleteEventArgs.cs
- HotCommands.cs
- AxisAngleRotation3D.cs
- XmlSchemaDocumentation.cs
- Config.cs
- HttpHeaderCollection.cs
- SecurityState.cs
- TextRunTypographyProperties.cs
- NetMsmqBindingCollectionElement.cs
- SocketPermission.cs
- SuppressMergeCheckAttribute.cs
- ControlCollection.cs
- SmiRequestExecutor.cs
- ClientOptions.cs
- XmlSchema.cs
- ListViewGroupItemCollection.cs
- TimeoutException.cs
- BrowserDefinitionCollection.cs
- PersonalizationEntry.cs
- PersianCalendar.cs
- SelectionUIHandler.cs
- DataServiceHost.cs
- RootDesignerSerializerAttribute.cs
- UseManagedPresentationBindingElement.cs