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
- CompositeActivityValidator.cs
- DataGridViewCellValidatingEventArgs.cs
- GiveFeedbackEventArgs.cs
- OutOfProcStateClientManager.cs
- DoubleCollectionConverter.cs
- CompilationUtil.cs
- XsltConvert.cs
- SecurityManager.cs
- ExtensionQuery.cs
- WindowsFont.cs
- DbgCompiler.cs
- PreviewControlDesigner.cs
- HTTPRemotingHandler.cs
- DashStyle.cs
- DateBoldEvent.cs
- SymmetricAlgorithm.cs
- SocketStream.cs
- EntityKeyElement.cs
- ColorAnimationBase.cs
- FileSecurity.cs
- Axis.cs
- HyperLinkField.cs
- RenderDataDrawingContext.cs
- DocumentOrderQuery.cs
- XmlElementAttributes.cs
- MultipleViewProviderWrapper.cs
- HttpWebRequestElement.cs
- InvalidProgramException.cs
- SecureEnvironment.cs
- GestureRecognizer.cs
- ReverseComparer.cs
- TraceHelpers.cs
- InputLangChangeEvent.cs
- CssStyleCollection.cs
- TimelineClockCollection.cs
- SemaphoreSecurity.cs
- XmlTextEncoder.cs
- ClusterSafeNativeMethods.cs
- SystemResources.cs
- DrawingCollection.cs
- versioninfo.cs
- FileChangesMonitor.cs
- precedingsibling.cs
- ThrowHelper.cs
- TraceEventCache.cs
- LineGeometry.cs
- AnimatedTypeHelpers.cs
- ProxyGenerator.cs
- NegotiateStream.cs
- ExpressionParser.cs
- DbSourceCommand.cs
- CellQuery.cs
- ValueTypeFixupInfo.cs
- HandlerFactoryWrapper.cs
- TransformCollection.cs
- SafeRightsManagementEnvironmentHandle.cs
- CalendarModeChangedEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- _NestedSingleAsyncResult.cs
- OleDbDataAdapter.cs
- DecoderBestFitFallback.cs
- SetStateDesigner.cs
- ElapsedEventArgs.cs
- StructuredType.cs
- SessionPageStatePersister.cs
- GridItemProviderWrapper.cs
- EventWaitHandleSecurity.cs
- Converter.cs
- AddInControllerImpl.cs
- Baml6ConstructorInfo.cs
- _emptywebproxy.cs
- MsmqProcessProtocolHandler.cs
- DataGridHeaderBorder.cs
- ComponentManagerBroker.cs
- EditingMode.cs
- QuotedPrintableStream.cs
- EventData.cs
- ASCIIEncoding.cs
- CustomError.cs
- BrowserInteropHelper.cs
- RequestUriProcessor.cs
- PropertyItem.cs
- DockAndAnchorLayout.cs
- ProxyAttribute.cs
- PropertyBuilder.cs
- ChangeNode.cs
- EnvelopedPkcs7.cs
- EncoderFallback.cs
- PasswordDeriveBytes.cs
- GenericPrincipal.cs
- SQLInt64Storage.cs
- ExpandSegmentCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- XmlDesignerDataSourceView.cs
- StreamUpdate.cs
- StringValueConverter.cs
- GPRECTF.cs
- MsmqIntegrationProcessProtocolHandler.cs
- NameSpaceEvent.cs
- CroppedBitmap.cs