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
- OleDbParameter.cs
- X509ChainPolicy.cs
- categoryentry.cs
- DocumentXmlWriter.cs
- DataControlImageButton.cs
- CustomTypeDescriptor.cs
- OdbcFactory.cs
- TableCellAutomationPeer.cs
- CodeRegionDirective.cs
- RegexFCD.cs
- NativeStructs.cs
- ErrorLog.cs
- ResourceExpression.cs
- SynchronizingStream.cs
- ResourcePart.cs
- EventLogPermissionHolder.cs
- DetailsViewUpdatedEventArgs.cs
- UInt64.cs
- CodeNamespace.cs
- RangeValuePattern.cs
- PopupRootAutomationPeer.cs
- CriticalFinalizerObject.cs
- FormatConvertedBitmap.cs
- QueryConverter.cs
- ObjectParameterCollection.cs
- AmbientProperties.cs
- ValidationManager.cs
- ExclusiveTcpListener.cs
- HttpApplicationStateBase.cs
- ObjectComplexPropertyMapping.cs
- MediaPlayer.cs
- KnownColorTable.cs
- TargetInvocationException.cs
- ConsumerConnectionPoint.cs
- ScrollItemProviderWrapper.cs
- CapabilitiesRule.cs
- httpapplicationstate.cs
- TransactionScopeDesigner.cs
- XmlDocumentFragment.cs
- FactoryRecord.cs
- ExpressionBinding.cs
- PlatformCulture.cs
- ModulesEntry.cs
- ListControlDataBindingHandler.cs
- UnsignedPublishLicense.cs
- BamlRecordReader.cs
- UriSectionReader.cs
- LinqDataSourceUpdateEventArgs.cs
- Aggregates.cs
- RenderCapability.cs
- ActivityMarkupSerializationProvider.cs
- SafeFileMapViewHandle.cs
- NextPreviousPagerField.cs
- PathFigureCollectionConverter.cs
- PolicyValidationException.cs
- WeakReferenceList.cs
- DataGridCell.cs
- RuntimeConfigLKG.cs
- basemetadatamappingvisitor.cs
- PlainXmlWriter.cs
- Int16AnimationBase.cs
- ServiceThrottlingElement.cs
- StrokeCollectionConverter.cs
- Label.cs
- InsufficientExecutionStackException.cs
- ACE.cs
- CustomLineCap.cs
- WindowsImpersonationContext.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- Menu.cs
- unitconverter.cs
- CustomAttribute.cs
- BaseDataListActionList.cs
- QueryExtender.cs
- SqlExpander.cs
- TransactionBehavior.cs
- PaintValueEventArgs.cs
- WebPartZone.cs
- FloaterBaseParaClient.cs
- OleDbMetaDataFactory.cs
- ManagedIStream.cs
- DriveNotFoundException.cs
- AnchoredBlock.cs
- SaveFileDialog.cs
- JsonGlobals.cs
- SmtpFailedRecipientsException.cs
- ColumnWidthChangingEvent.cs
- SingleAnimation.cs
- AdPostCacheSubstitution.cs
- COM2Enum.cs
- DeploymentExceptionMapper.cs
- ConnectionString.cs
- QilLoop.cs
- WorkflowHostingEndpoint.cs
- LinearQuaternionKeyFrame.cs
- COM2ComponentEditor.cs
- AssociatedControlConverter.cs
- QueryMatcher.cs
- XmlBinaryReader.cs
- SettingsBindableAttribute.cs