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
- HtmlInputHidden.cs
- EventLogPermissionAttribute.cs
- XmlEncodedRawTextWriter.cs
- Module.cs
- ByValueEqualityComparer.cs
- HMACSHA384.cs
- UnsafeNativeMethods.cs
- Exception.cs
- DrawingContextFlattener.cs
- SiteMapNodeItemEventArgs.cs
- DataGridViewHeaderCell.cs
- PeerApplication.cs
- ExitEventArgs.cs
- FrameworkTemplate.cs
- XmlSchemaCollection.cs
- ErrorEventArgs.cs
- RpcAsyncResult.cs
- DataGridViewTextBoxColumn.cs
- PeerPresenceInfo.cs
- cookiecollection.cs
- Line.cs
- TextEncodedRawTextWriter.cs
- StandardBindingImporter.cs
- PipeSecurity.cs
- StateRuntime.cs
- LightweightCodeGenerator.cs
- FlowDocumentReaderAutomationPeer.cs
- ToolStripSplitStackLayout.cs
- FormattedTextSymbols.cs
- ICspAsymmetricAlgorithm.cs
- DBDataPermissionAttribute.cs
- CatalogZone.cs
- CapabilitiesPattern.cs
- ProjectedSlot.cs
- IDReferencePropertyAttribute.cs
- XamlStream.cs
- XPathNavigatorKeyComparer.cs
- DataAdapter.cs
- SecurityException.cs
- SR.cs
- DispatchChannelSink.cs
- SqlLiftWhereClauses.cs
- SimpleWorkerRequest.cs
- PointAnimation.cs
- BufferBuilder.cs
- RtfNavigator.cs
- CodeTypeConstructor.cs
- SequenceRangeCollection.cs
- MonthCalendar.cs
- XmlDictionaryReaderQuotas.cs
- MouseButton.cs
- UserControlFileEditor.cs
- ItemsControl.cs
- MimeFormReflector.cs
- ValuePatternIdentifiers.cs
- XmlSchemaProviderAttribute.cs
- XmlWrappingReader.cs
- Line.cs
- EntityDataSourceState.cs
- BStrWrapper.cs
- TypeResolver.cs
- TokenBasedSet.cs
- ConnectionInterfaceCollection.cs
- PackageRelationship.cs
- WindowsFormsLinkLabel.cs
- ValidatingReaderNodeData.cs
- ColorAnimation.cs
- DataReaderContainer.cs
- XhtmlTextWriter.cs
- MediaEntryAttribute.cs
- XmlArrayAttribute.cs
- VisualStyleInformation.cs
- ToolboxDataAttribute.cs
- SoapAttributeOverrides.cs
- Point3DIndependentAnimationStorage.cs
- MarkupCompilePass2.cs
- ZipIOCentralDirectoryFileHeader.cs
- UnknownBitmapDecoder.cs
- DataTemplateSelector.cs
- _ConnectOverlappedAsyncResult.cs
- HttpListenerContext.cs
- ByteAnimationBase.cs
- LingerOption.cs
- CursorConverter.cs
- BitVector32.cs
- RectangleGeometry.cs
- BufferedReadStream.cs
- DateTimeFormatInfoScanner.cs
- ReadOnlyDictionary.cs
- _NestedMultipleAsyncResult.cs
- AspCompat.cs
- TextEncodedRawTextWriter.cs
- UnsafePeerToPeerMethods.cs
- SafeProcessHandle.cs
- ClientTargetCollection.cs
- DataGridBoundColumn.cs
- CroppedBitmap.cs
- TextPenaltyModule.cs
- DiscriminatorMap.cs
- PropertyCollection.cs