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
- BamlRecords.cs
- XmlSerializerNamespaces.cs
- ProcessInputEventArgs.cs
- SimpleWebHandlerParser.cs
- AccessControlList.cs
- IDispatchConstantAttribute.cs
- DataGridViewColumnStateChangedEventArgs.cs
- StateDesigner.LayoutSelectionGlyph.cs
- SimpleApplicationHost.cs
- XslCompiledTransform.cs
- _NestedMultipleAsyncResult.cs
- ErrorEventArgs.cs
- VariableBinder.cs
- SelectionListDesigner.cs
- EventlogProvider.cs
- PersonalizationStateQuery.cs
- RegexCapture.cs
- BrowserCapabilitiesFactory.cs
- ResponseBodyWriter.cs
- DataGridViewRowsRemovedEventArgs.cs
- Item.cs
- HwndAppCommandInputProvider.cs
- DesignerForm.cs
- XslTransformFileEditor.cs
- SchemaObjectWriter.cs
- IChannel.cs
- DelegatedStream.cs
- ModuleElement.cs
- IImplicitResourceProvider.cs
- JulianCalendar.cs
- HttpModuleCollection.cs
- TextParentUndoUnit.cs
- ConfigXmlSignificantWhitespace.cs
- Int16AnimationUsingKeyFrames.cs
- WindowsServiceCredential.cs
- FileDetails.cs
- latinshape.cs
- DiagnosticsConfigurationHandler.cs
- TraceSource.cs
- FontWeight.cs
- SystemBrushes.cs
- Annotation.cs
- HtmlLink.cs
- SiteMapProvider.cs
- ActivityCodeDomReferenceService.cs
- XmlSecureResolver.cs
- StyleXamlParser.cs
- InternalResources.cs
- BaseTemplateBuildProvider.cs
- DiscardableAttribute.cs
- ByteStorage.cs
- XPathBinder.cs
- HuffmanTree.cs
- TableItemPattern.cs
- TreeNodeStyleCollection.cs
- DiscardableAttribute.cs
- ExpressionDumper.cs
- WinFormsSpinner.cs
- AlternateViewCollection.cs
- ReadWriteObjectLock.cs
- InternalConfigSettingsFactory.cs
- input.cs
- TableLayoutCellPaintEventArgs.cs
- Label.cs
- SqlDataSourceCache.cs
- WinOEToolBoxItem.cs
- WebPartDeleteVerb.cs
- XmlElementList.cs
- safePerfProviderHandle.cs
- RelatedImageListAttribute.cs
- MarkupExtensionParser.cs
- MultiBindingExpression.cs
- Application.cs
- Int32AnimationBase.cs
- IxmlLineInfo.cs
- WebPartTransformerAttribute.cs
- SQLUtility.cs
- TextServicesContext.cs
- ResourceReferenceKeyNotFoundException.cs
- WebPartVerbsEventArgs.cs
- PinnedBufferMemoryStream.cs
- ReadOnlyDataSource.cs
- GatewayDefinition.cs
- ProvideValueServiceProvider.cs
- TextServicesCompartment.cs
- KeySpline.cs
- RawStylusInputReport.cs
- CallbackHandler.cs
- StringUtil.cs
- EnumUnknown.cs
- PenCursorManager.cs
- InheritanceRules.cs
- ByteFacetDescriptionElement.cs
- LineServices.cs
- TranslateTransform.cs
- FileLoadException.cs
- ModuleBuilder.cs
- DispatchWrapper.cs
- NestedContainer.cs
- TextAnchor.cs