Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ParagraphVisual.cs
- Grid.cs
- DataGridViewSortCompareEventArgs.cs
- PcmConverter.cs
- UnderstoodHeaders.cs
- GridProviderWrapper.cs
- UICuesEvent.cs
- GZipStream.cs
- FreeFormPanel.cs
- FilterQuery.cs
- EllipticalNodeOperations.cs
- ControlBindingsCollection.cs
- ValidationPropertyAttribute.cs
- CannotUnloadAppDomainException.cs
- PixelFormats.cs
- WindowsGraphicsWrapper.cs
- SQLCharsStorage.cs
- DateTimeHelper.cs
- HttpCachePolicy.cs
- SctClaimDictionary.cs
- ContainerFilterService.cs
- SchemaImporter.cs
- BaseResourcesBuildProvider.cs
- ResourceProviderFactory.cs
- IPipelineRuntime.cs
- DbProviderFactoriesConfigurationHandler.cs
- SessionEndingEventArgs.cs
- ReachDocumentSequenceSerializer.cs
- CaseInsensitiveOrdinalStringComparer.cs
- EncryptedPackage.cs
- SemanticValue.cs
- UndoUnit.cs
- AutomationProperties.cs
- ReturnValue.cs
- SecurityElementBase.cs
- FontEmbeddingManager.cs
- XamlStackWriter.cs
- WinEventHandler.cs
- UIElementCollection.cs
- DbParameterCollectionHelper.cs
- EditCommandColumn.cs
- Quaternion.cs
- RuleElement.cs
- AuthenticationConfig.cs
- ModelUIElement3D.cs
- AuthenticationModuleElementCollection.cs
- SynthesizerStateChangedEventArgs.cs
- ApplicationInfo.cs
- ExecutedRoutedEventArgs.cs
- OracleMonthSpan.cs
- ClientSettingsSection.cs
- CatalogPartChrome.cs
- Math.cs
- CfgParser.cs
- RenderContext.cs
- grammarelement.cs
- TemplateNameScope.cs
- BuildProvider.cs
- GeneralTransform3DTo2D.cs
- Screen.cs
- ResourceDefaultValueAttribute.cs
- BindValidator.cs
- SqlStatistics.cs
- rsa.cs
- SecurityDescriptor.cs
- ContextMenuStrip.cs
- Timer.cs
- DeferredReference.cs
- MsmqProcessProtocolHandler.cs
- Transform3DGroup.cs
- VirtualPathUtility.cs
- controlskin.cs
- StaticFileHandler.cs
- DefaultTextStoreTextComposition.cs
- UnauthorizedWebPart.cs
- SqlDependency.cs
- FaultHandlingFilter.cs
- WebResourceAttribute.cs
- ReadWriteSpinLock.cs
- InstanceLockQueryResult.cs
- PageThemeCodeDomTreeGenerator.cs
- SqlDependency.cs
- WebConfigurationManager.cs
- Identifier.cs
- StorageComplexTypeMapping.cs
- AliasGenerator.cs
- Cursor.cs
- NetSectionGroup.cs
- CommonDialog.cs
- DataTableClearEvent.cs
- UnauthorizedAccessException.cs
- TranslateTransform.cs
- SelectionProviderWrapper.cs
- DecimalConstantAttribute.cs
- ApplicationSecurityInfo.cs
- WebUtil.cs
- TimeSpanSecondsConverter.cs
- XmlLoader.cs
- Identifier.cs
- CLRBindingWorker.cs