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
- DataGridItem.cs
- UpDownBase.cs
- JsonDataContract.cs
- WebPartUtil.cs
- BulletChrome.cs
- DataContractJsonSerializerOperationFormatter.cs
- ImpersonateTokenRef.cs
- UnsafeNativeMethods.cs
- PerformanceCounterPermissionEntryCollection.cs
- Lease.cs
- DocumentPageHost.cs
- InputProcessorProfilesLoader.cs
- URIFormatException.cs
- FilteredXmlReader.cs
- ProcessModelInfo.cs
- CancellationHandlerDesigner.cs
- CodeTypeParameter.cs
- xsdvalidator.cs
- __FastResourceComparer.cs
- ImageMapEventArgs.cs
- PropertyToken.cs
- ObjectCloneHelper.cs
- SettingsAttributes.cs
- EntityModelBuildProvider.cs
- StylusPlugin.cs
- ToolStripComboBox.cs
- RSAPKCS1SignatureDeformatter.cs
- RectangleGeometry.cs
- Fault.cs
- WebPartCancelEventArgs.cs
- HttpApplication.cs
- DataGridHeaderBorder.cs
- mda.cs
- LockCookie.cs
- PrintDialog.cs
- SBCSCodePageEncoding.cs
- CompositeFontInfo.cs
- XhtmlCssHandler.cs
- WCFServiceClientProxyGenerator.cs
- HtmlHistory.cs
- CollectionChangedEventManager.cs
- DataTransferEventArgs.cs
- BamlBinaryWriter.cs
- ConfigXmlText.cs
- COM2Enum.cs
- TextSpanModifier.cs
- WebService.cs
- TrustSection.cs
- ReferenceService.cs
- PerfService.cs
- MatrixAnimationUsingKeyFrames.cs
- SerializableAttribute.cs
- PageWrapper.cs
- StrongNameHelpers.cs
- Form.cs
- SystemThemeKey.cs
- TextEncodedRawTextWriter.cs
- VectorAnimationUsingKeyFrames.cs
- SqlWebEventProvider.cs
- NameValuePermission.cs
- ListViewItem.cs
- PenLineJoinValidation.cs
- MobileCategoryAttribute.cs
- DnsPermission.cs
- Parameter.cs
- DependencyPropertyAttribute.cs
- FileVersionInfo.cs
- SqlDataReader.cs
- ClientRequest.cs
- TextEditorTables.cs
- Component.cs
- ClassHandlersStore.cs
- BaseTemplateCodeDomTreeGenerator.cs
- VSWCFServiceContractGenerator.cs
- OrderPreservingMergeHelper.cs
- SQLInt64.cs
- HtmlInputButton.cs
- FormatSelectingMessageInspector.cs
- ActivityExecutor.cs
- XmlSchemaAny.cs
- CompositeCollection.cs
- WsdlWriter.cs
- columnmapfactory.cs
- PolicyLevel.cs
- PaginationProgressEventArgs.cs
- ProviderConnectionPointCollection.cs
- XXXInfos.cs
- CustomTypeDescriptor.cs
- OracleTransaction.cs
- UrlPropertyAttribute.cs
- CatchBlock.cs
- HttpInputStream.cs
- DiscoveryReferences.cs
- HttpException.cs
- BamlBinaryReader.cs
- Tokenizer.cs
- Registry.cs
- ParallelTimeline.cs
- MulticastOption.cs
- ServicePointManagerElement.cs