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
- dsa.cs
- BitmapMetadata.cs
- StreamGeometry.cs
- ViewEventArgs.cs
- GridViewPageEventArgs.cs
- Array.cs
- SqlDeflator.cs
- QualifiedCellIdBoolean.cs
- ZipIOExtraFieldZip64Element.cs
- OleDbFactory.cs
- DataBoundControlHelper.cs
- AdRotator.cs
- MarkupExtensionParser.cs
- KnownTypesProvider.cs
- DockPattern.cs
- DataSetMappper.cs
- SyndicationContent.cs
- WmlValidationSummaryAdapter.cs
- PartialCachingAttribute.cs
- GlobalizationSection.cs
- XmlSchemaCollection.cs
- columnmapfactory.cs
- InternalBase.cs
- KeyValueSerializer.cs
- CodeTypeReferenceCollection.cs
- XamlSerializerUtil.cs
- _DigestClient.cs
- RenderDataDrawingContext.cs
- Solver.cs
- VariableQuery.cs
- Matrix3D.cs
- ToolStripOverflowButton.cs
- UnsafeNativeMethods.cs
- RecommendedAsConfigurableAttribute.cs
- SQLInt64.cs
- RemoteWebConfigurationHostServer.cs
- AttributeInfo.cs
- HashSetDebugView.cs
- StatusBar.cs
- Ref.cs
- ScrollPattern.cs
- AdjustableArrowCap.cs
- Walker.cs
- AssemblyInfo.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- MessageSecurityOverMsmq.cs
- HtmlInputHidden.cs
- DiscoveryClientDocuments.cs
- RightsManagementResourceHelper.cs
- MobileFormsAuthentication.cs
- MarkupExtensionReturnTypeAttribute.cs
- UnknownBitmapDecoder.cs
- PropertyGeneratedEventArgs.cs
- BitmapPalette.cs
- PixelFormats.cs
- WeakReference.cs
- BufferBuilder.cs
- SqlTriggerAttribute.cs
- WebPartConnectionsConnectVerb.cs
- PublisherMembershipCondition.cs
- ToggleButton.cs
- HuffModule.cs
- LinqDataSourceContextEventArgs.cs
- BitSet.cs
- IntellisenseTextBox.designer.cs
- StylesEditorDialog.cs
- AttachmentService.cs
- HotCommands.cs
- Misc.cs
- TypeToken.cs
- DefaultAsyncDataDispatcher.cs
- VirtualPathProvider.cs
- COM2ICategorizePropertiesHandler.cs
- XmlAttributeOverrides.cs
- ColumnWidthChangedEvent.cs
- FigureParaClient.cs
- BaseProcessProtocolHandler.cs
- DataPager.cs
- FontSource.cs
- FrameworkTextComposition.cs
- ValidationErrorCollection.cs
- InvalidWMPVersionException.cs
- PaintEvent.cs
- CustomCredentialPolicy.cs
- ListViewUpdateEventArgs.cs
- LocalizableResourceBuilder.cs
- AppDomainManager.cs
- FixUpCollection.cs
- ValidatorCollection.cs
- DateTimeFormatInfoScanner.cs
- _UncName.cs
- LinqDataSourceValidationException.cs
- OleDragDropHandler.cs
- TextBoxDesigner.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- IDispatchConstantAttribute.cs
- CFGGrammar.cs
- TextOptions.cs
- FormsAuthenticationCredentials.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs