Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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 : [....] - 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
- Socket.cs
- DbProviderFactory.cs
- SafeSecurityHelper.cs
- SmiGettersStream.cs
- DesignerOptionService.cs
- ListViewHitTestInfo.cs
- smtpconnection.cs
- CounterCreationDataConverter.cs
- Keywords.cs
- MenuCommand.cs
- UnregisterInfo.cs
- SymbolResolver.cs
- ErrorRuntimeConfig.cs
- SerializationException.cs
- SettingsPropertyWrongTypeException.cs
- versioninfo.cs
- PackWebResponse.cs
- UInt32Storage.cs
- CodeMemberProperty.cs
- WebPartConnectionsCancelEventArgs.cs
- SqlAggregateChecker.cs
- FusionWrap.cs
- OleCmdHelper.cs
- EventBuilder.cs
- SharedPerformanceCounter.cs
- sqlser.cs
- BitmapEffectvisualstate.cs
- JapaneseCalendar.cs
- ReadOnlyTernaryTree.cs
- CodeCompiler.cs
- BaseResourcesBuildProvider.cs
- Misc.cs
- OleCmdHelper.cs
- ConstraintCollection.cs
- FixedElement.cs
- SemaphoreFullException.cs
- TdsRecordBufferSetter.cs
- BaseTemplateBuildProvider.cs
- DeviceSpecific.cs
- IDReferencePropertyAttribute.cs
- HMACSHA512.cs
- OleDbConnectionFactory.cs
- Rect.cs
- DocumentGridContextMenu.cs
- TaskFormBase.cs
- ColorKeyFrameCollection.cs
- MessageFilter.cs
- CultureInfo.cs
- CommandValueSerializer.cs
- Math.cs
- BehaviorEditorPart.cs
- TimerElapsedEvenArgs.cs
- DataControlFieldCollection.cs
- OrderedEnumerableRowCollection.cs
- EntryPointNotFoundException.cs
- Stack.cs
- DelegatedStream.cs
- ColumnCollection.cs
- NegotiateStream.cs
- XmlReflectionImporter.cs
- BuildTopDownAttribute.cs
- StylusPlugInCollection.cs
- PageContent.cs
- Int32Storage.cs
- NullableDecimalSumAggregationOperator.cs
- CompiledELinqQueryState.cs
- JapaneseCalendar.cs
- EventToken.cs
- Int16KeyFrameCollection.cs
- PenContexts.cs
- Calendar.cs
- MaskInputRejectedEventArgs.cs
- SharedUtils.cs
- Helpers.cs
- FieldBuilder.cs
- TransformerInfo.cs
- SqlClientMetaDataCollectionNames.cs
- ServiceDescriptionSerializer.cs
- controlskin.cs
- ListViewTableRow.cs
- URLString.cs
- ColumnMapCopier.cs
- XPathAxisIterator.cs
- TaiwanCalendar.cs
- SHA512Managed.cs
- XmlDataImplementation.cs
- ToolStripOverflowButton.cs
- Model3D.cs
- UrlPath.cs
- SoapFaultCodes.cs
- TypeDescriptionProviderAttribute.cs
- TimersDescriptionAttribute.cs
- ISCIIEncoding.cs
- _AutoWebProxyScriptHelper.cs
- PriorityChain.cs
- HttpListenerResponse.cs
- URL.cs
- ContravarianceAdapter.cs
- ProjectedWrapper.cs
- StoreConnection.cs