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
- SoapHeaders.cs
- MobileUITypeEditor.cs
- DeviceContext.cs
- NotificationContext.cs
- EditBehavior.cs
- Int16Converter.cs
- Overlapped.cs
- LingerOption.cs
- EdmProperty.cs
- TemplateLookupAction.cs
- HashStream.cs
- OleDbDataReader.cs
- LinqDataSource.cs
- ConditionCollection.cs
- DataGridViewBand.cs
- AssemblyCache.cs
- ClosableStream.cs
- Types.cs
- AxParameterData.cs
- EventProxy.cs
- RuntimeHelpers.cs
- XmlDictionaryString.cs
- FormsAuthenticationConfiguration.cs
- WebBrowserHelper.cs
- ListViewGroupItemCollection.cs
- WeakReference.cs
- SQLInt16Storage.cs
- base64Transforms.cs
- ColumnWidthChangedEvent.cs
- ImageAutomationPeer.cs
- InvokeWebService.cs
- OleDbErrorCollection.cs
- Color.cs
- Int16Converter.cs
- GregorianCalendarHelper.cs
- ISO2022Encoding.cs
- DataContract.cs
- MemberHolder.cs
- MultiByteCodec.cs
- FileChangeNotifier.cs
- PeerCredential.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ContractInferenceHelper.cs
- ImageSource.cs
- DocumentPageView.cs
- ServiceInfoCollection.cs
- OrderedDictionary.cs
- AppDomainFactory.cs
- EditingMode.cs
- XsdValidatingReader.cs
- GroupStyle.cs
- _DisconnectOverlappedAsyncResult.cs
- Substitution.cs
- DiscoveryServiceExtension.cs
- WebPartDescription.cs
- TypeDescriptionProvider.cs
- BindingCompleteEventArgs.cs
- HierarchicalDataSourceConverter.cs
- MessageFilterException.cs
- Viewport3DVisual.cs
- ObjectDataSourceMethodEventArgs.cs
- KerberosRequestorSecurityToken.cs
- ControlValuePropertyAttribute.cs
- SystemUdpStatistics.cs
- RelationshipEndCollection.cs
- XmlQualifiedNameTest.cs
- WCFServiceClientProxyGenerator.cs
- MultiSelector.cs
- SplitterCancelEvent.cs
- OrthographicCamera.cs
- SocketInformation.cs
- TransactionFilter.cs
- ActivityPropertyReference.cs
- ObjectStateEntryDbDataRecord.cs
- BoolExpression.cs
- PageRequestManager.cs
- reliableinputsessionchannel.cs
- unsafenativemethodsother.cs
- EntityTypeEmitter.cs
- X509Certificate2Collection.cs
- HandledMouseEvent.cs
- HtmlDocument.cs
- DataGridHeaderBorder.cs
- HtmlControl.cs
- ToggleButton.cs
- RequiredFieldValidator.cs
- LinqDataSourceValidationException.cs
- RenderOptions.cs
- ShaperBuffers.cs
- PropertyChangedEventManager.cs
- JsonWriter.cs
- followingsibling.cs
- AutoFocusStyle.xaml.cs
- MailMessage.cs
- AuthenticationService.cs
- QuerySetOp.cs
- KoreanLunisolarCalendar.cs
- GridViewCommandEventArgs.cs
- XMLUtil.cs
- LineVisual.cs