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
- DbConnectionStringCommon.cs
- WmlLiteralTextAdapter.cs
- ClosableStream.cs
- DefaultObjectSerializer.cs
- ArglessEventHandlerProxy.cs
- StylusPointPropertyUnit.cs
- EditorZoneBase.cs
- DispatcherObject.cs
- TransactionInformation.cs
- AppDomainAttributes.cs
- MetafileHeader.cs
- DefaultValueTypeConverter.cs
- XmlBufferReader.cs
- SystemIPv4InterfaceProperties.cs
- QuerySetOp.cs
- RTLAwareMessageBox.cs
- SmiRequestExecutor.cs
- TextEndOfLine.cs
- MimeTypeAttribute.cs
- LinkClickEvent.cs
- BaseComponentEditor.cs
- CodeTypeReference.cs
- XNodeNavigator.cs
- GlyphRunDrawing.cs
- TransformGroup.cs
- BookmarkOptionsHelper.cs
- UpdateManifestForBrowserApplication.cs
- VariableElement.cs
- AttachedPropertyInfo.cs
- HtmlTable.cs
- RequiredAttributeAttribute.cs
- SafeFindHandle.cs
- ItemChangedEventArgs.cs
- SwitchCase.cs
- ConfigurationFileMap.cs
- Vector3DIndependentAnimationStorage.cs
- MouseDevice.cs
- DiagnosticsElement.cs
- Soap.cs
- AttributeUsageAttribute.cs
- PaperSource.cs
- PartBasedPackageProperties.cs
- DropTarget.cs
- ToolStripGripRenderEventArgs.cs
- ProfileProvider.cs
- RootBrowserWindow.cs
- BaseCodePageEncoding.cs
- ResolveMatchesApril2005.cs
- Int16.cs
- VisualStyleTypesAndProperties.cs
- tibetanshape.cs
- ConnectionStringEditor.cs
- TreeNodeStyleCollection.cs
- codemethodreferenceexpression.cs
- ValidationUtility.cs
- XamlStyleSerializer.cs
- TreeViewTemplateSelector.cs
- _AutoWebProxyScriptEngine.cs
- XmlElementAttributes.cs
- LinqTreeNodeEvaluator.cs
- HandleDictionary.cs
- Pen.cs
- ToolStripItem.cs
- VisualStyleElement.cs
- SerializationObjectManager.cs
- RecordsAffectedEventArgs.cs
- _BasicClient.cs
- PatternMatcher.cs
- ResourceDisplayNameAttribute.cs
- TypeUtil.cs
- LineGeometry.cs
- SqlDataSourceCommandParser.cs
- RuntimeEnvironment.cs
- WindowsScrollBarBits.cs
- QilExpression.cs
- DbRetry.cs
- ToolStripSettings.cs
- SafeArrayTypeMismatchException.cs
- TemplateControlBuildProvider.cs
- FileSystemWatcher.cs
- OracleParameterCollection.cs
- XmlNodeList.cs
- ToolStripArrowRenderEventArgs.cs
- FamilyTypefaceCollection.cs
- ProviderConnectionPoint.cs
- AssemblyCacheEntry.cs
- IconHelper.cs
- DemultiplexingClientMessageFormatter.cs
- DesignRelationCollection.cs
- ZipPackage.cs
- Delegate.cs
- BinaryReader.cs
- TrackingServices.cs
- ContainerActivationHelper.cs
- Symbol.cs
- UnsafeNativeMethods.cs
- ResolveCriteria11.cs
- CollectionViewSource.cs
- EntityDataSourceContextCreatedEventArgs.cs
- DetailsViewModeEventArgs.cs