Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / AccessibilityApplicationManager.cs / 1 / AccessibilityApplicationManager.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace Microsoft.InfoCards
{
using System;
using Microsoft.InfoCards;
using System.Diagnostics;
using System.Security.Principal; //WindowsIdentity
//
// Summary:
// This class will manage the lifetimes of the accessibility applications
// on the InfoCard desktop.
//
internal class AccessibilityApplicationManager
{
const int WindowsVistaMajorVersion = 6;
IAccessibilityHelper m_helper;
public AccessibilityApplicationManager()
{
//
// Find out if we are on tablet PC.
//
bool fTabletPC = ( 0 != NativeMethods.GetSystemMetrics( NativeMethods.SM_TABLETPC ) );
if( Environment.OSVersion.Version.Major < WindowsVistaMajorVersion )
{
m_helper = new AccessibilityHelperForXpWin2k3( fTabletPC );
}
else
{
m_helper = new AccessibilityHelperForVista( fTabletPC );
}
}
public void Stop()
{
m_helper.Stop();
}
public void RestartOnInfoCardDesktop( uint userATApplicationFlags,
SafeNativeHandle hTrustedUserToken,
ref string trustedUserSid,
string infocardDesktop,
int userSessionId,
uint userProcessId,
WindowsIdentity userIdentity )
{
m_helper.RestartOnInfoCardDesktop( userATApplicationFlags,
hTrustedUserToken,
ref trustedUserSid,
infocardDesktop,
userSessionId,
userProcessId,
userIdentity );
}
public bool RestartOnUsersDesktop( uint userProcessId, string userDesktop, WindowsIdentity userIdentity )
{
return m_helper.RestartOnUsersDesktop( userProcessId, userDesktop, userIdentity );
}
}
}
// 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
- RectConverter.cs
- SelectionItemProviderWrapper.cs
- ToolStrip.cs
- SelectManyQueryOperator.cs
- PhonemeEventArgs.cs
- XmlLanguageConverter.cs
- SplitContainer.cs
- Win32Exception.cs
- HttpSocketManager.cs
- Delegate.cs
- ChineseLunisolarCalendar.cs
- EngineSiteSapi.cs
- Variable.cs
- ForeignConstraint.cs
- OleDbDataAdapter.cs
- IntAverageAggregationOperator.cs
- CodeAccessPermission.cs
- CurrencyWrapper.cs
- TextLine.cs
- ProfileModule.cs
- ControlDesignerState.cs
- ParserStreamGeometryContext.cs
- _NtlmClient.cs
- PresentationTraceSources.cs
- ComponentDispatcher.cs
- BrowserDefinition.cs
- ExtractorMetadata.cs
- TreeViewBindingsEditor.cs
- EventLogEntryCollection.cs
- GridView.cs
- DataGridViewRowConverter.cs
- AssemblyInfo.cs
- BufferedGraphicsManager.cs
- DataBoundControlParameterTarget.cs
- CqlIdentifiers.cs
- PersonalizationProvider.cs
- BoundPropertyEntry.cs
- WebSysDefaultValueAttribute.cs
- TypeDependencyAttribute.cs
- UiaCoreApi.cs
- Literal.cs
- PointHitTestParameters.cs
- ParallelTimeline.cs
- FormsAuthenticationUser.cs
- GridViewColumnCollectionChangedEventArgs.cs
- TextFormatter.cs
- _ListenerAsyncResult.cs
- Stroke2.cs
- updateconfighost.cs
- EntityDataSourceSelectingEventArgs.cs
- Stylus.cs
- SafeWaitHandle.cs
- EmissiveMaterial.cs
- BackStopAuthenticationModule.cs
- DocumentGrid.cs
- TreeNodeCollection.cs
- HashCodeCombiner.cs
- ExceptionUtil.cs
- ISAPIWorkerRequest.cs
- ProfilePropertyMetadata.cs
- ClientSettingsSection.cs
- SHA384Managed.cs
- PropertyEmitter.cs
- PerspectiveCamera.cs
- WebPartEditorApplyVerb.cs
- InstanceCreationEditor.cs
- CapabilitiesPattern.cs
- ButtonBaseAdapter.cs
- EntityUtil.cs
- PropertyMapper.cs
- DispatcherFrame.cs
- PrefixHandle.cs
- ControllableStoryboardAction.cs
- EventLogEntry.cs
- ComponentConverter.cs
- TypeElement.cs
- DecimalAnimationUsingKeyFrames.cs
- DataSetMappper.cs
- SourceInterpreter.cs
- ContentDisposition.cs
- DictionaryBase.cs
- DrawingAttributes.cs
- SendActivityValidator.cs
- TemplateEditingService.cs
- SelectionRange.cs
- OdbcParameterCollection.cs
- CodeTypeParameterCollection.cs
- DbgCompiler.cs
- DbConnectionStringCommon.cs
- EdmPropertyAttribute.cs
- EditorPart.cs
- StoragePropertyMapping.cs
- ToolStripOverflow.cs
- FixedSOMImage.cs
- DataRecordInfo.cs
- Path.cs
- SourceSwitch.cs
- IntersectQueryOperator.cs
- SerializationInfo.cs
- CustomAttributeBuilder.cs