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
- FlowPosition.cs
- MergeFailedEvent.cs
- TargetParameterCountException.cs
- ScriptingAuthenticationServiceSection.cs
- ResolveNameEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- PageEventArgs.cs
- Action.cs
- User.cs
- ScrollBarAutomationPeer.cs
- BufferAllocator.cs
- HighContrastHelper.cs
- URIFormatException.cs
- EntityDataSourceDataSelection.cs
- ReaderWriterLock.cs
- Misc.cs
- ParameterElementCollection.cs
- HttpCacheParams.cs
- ObjectDisposedException.cs
- ElementHostAutomationPeer.cs
- SqlInternalConnection.cs
- CollectionConverter.cs
- Table.cs
- SafeNativeMemoryHandle.cs
- ExclusiveTcpListener.cs
- ToolTipService.cs
- CalendarBlackoutDatesCollection.cs
- BitVector32.cs
- PaintEvent.cs
- Cursors.cs
- RemoteArgument.cs
- SrgsToken.cs
- XmlCountingReader.cs
- WindowsSpinner.cs
- CurrentTimeZone.cs
- ExtendedTransformFactory.cs
- Attributes.cs
- Odbc32.cs
- PreservationFileWriter.cs
- SQLSingle.cs
- TableRow.cs
- SqlParameterCollection.cs
- NameValueConfigurationElement.cs
- SQLInt16Storage.cs
- EditModeSwitchButton.cs
- TextStore.cs
- HwndHostAutomationPeer.cs
- AutomationElement.cs
- ScriptResourceAttribute.cs
- ActionMismatchAddressingException.cs
- ConversionContext.cs
- DataGridComboBoxColumn.cs
- LinearQuaternionKeyFrame.cs
- NamespaceList.cs
- ScriptComponentDescriptor.cs
- UriWriter.cs
- WindowsImpersonationContext.cs
- Scripts.cs
- KnownBoxes.cs
- RowBinding.cs
- NestedContainer.cs
- XPathSelfQuery.cs
- SerialPort.cs
- TypeExtension.cs
- RequestCache.cs
- X509Certificate.cs
- SplitterPanel.cs
- XmlEntity.cs
- InputProcessorProfiles.cs
- SHA384Managed.cs
- JournalEntryListConverter.cs
- SequentialOutput.cs
- ScalarType.cs
- NameSpaceExtractor.cs
- CatalogZone.cs
- AdCreatedEventArgs.cs
- TextBox.cs
- WindowsSpinner.cs
- SecurityToken.cs
- ScriptDescriptor.cs
- CipherData.cs
- Documentation.cs
- UnsafeNativeMethods.cs
- ProcessThread.cs
- CellLabel.cs
- ComplexType.cs
- DragEvent.cs
- RelationshipEndMember.cs
- XmlQueryStaticData.cs
- FillBehavior.cs
- FileInfo.cs
- GeneralTransform2DTo3DTo2D.cs
- FixedFlowMap.cs
- AccessDataSource.cs
- FileLevelControlBuilderAttribute.cs
- SourceFileInfo.cs
- LinearQuaternionKeyFrame.cs
- GeneratedView.cs
- CacheDependency.cs
- ViewgenGatekeeper.cs