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
- GetReadStreamResult.cs
- XmlSchemaDatatype.cs
- TextDocumentView.cs
- HttpCachePolicyElement.cs
- AlignmentXValidation.cs
- DeferrableContent.cs
- HttpAsyncResult.cs
- ArcSegment.cs
- QueryExpr.cs
- Tag.cs
- EventProviderTraceListener.cs
- FixedPageStructure.cs
- ServerProtocol.cs
- SqlExpressionNullability.cs
- TablePatternIdentifiers.cs
- WebPartMenuStyle.cs
- OracleMonthSpan.cs
- XmlValidatingReader.cs
- BasicHttpMessageSecurity.cs
- FixedSOMLineCollection.cs
- TextRunTypographyProperties.cs
- NeutralResourcesLanguageAttribute.cs
- SQLInt64Storage.cs
- EventLogPermission.cs
- TableCellCollection.cs
- SmtpReplyReaderFactory.cs
- View.cs
- FieldTemplateUserControl.cs
- IssuedTokenClientCredential.cs
- ToggleButtonAutomationPeer.cs
- MatrixUtil.cs
- TryLoadRunnableWorkflowCommand.cs
- WindowsTitleBar.cs
- ConfigurationSchemaErrors.cs
- UniformGrid.cs
- RawStylusInputReport.cs
- DataGridViewRowsAddedEventArgs.cs
- OracleCommandBuilder.cs
- TransactionOptions.cs
- ToolStripOverflow.cs
- RawKeyboardInputReport.cs
- BoolExpression.cs
- Encoding.cs
- SqlComparer.cs
- AsyncContentLoadedEventArgs.cs
- MetadataWorkspace.cs
- ModelItemCollection.cs
- WorkflowRuntimeServiceElementCollection.cs
- QilStrConcat.cs
- UICuesEvent.cs
- PropertyChange.cs
- ServiceDescriptionSerializer.cs
- RenderContext.cs
- SpeechEvent.cs
- NumberFormatInfo.cs
- DependencySource.cs
- SystemThemeKey.cs
- ScriptResourceHandler.cs
- OpCellTreeNode.cs
- MembershipValidatePasswordEventArgs.cs
- GenericFlowSwitchHelper.cs
- DES.cs
- SlotInfo.cs
- NegatedCellConstant.cs
- Peer.cs
- StructuralComparisons.cs
- UrlAuthorizationModule.cs
- ButtonBaseAdapter.cs
- MappingItemCollection.cs
- ResponseBodyWriter.cs
- LicenseException.cs
- CfgArc.cs
- XmlSchemaCompilationSettings.cs
- AddingNewEventArgs.cs
- DurableInstanceProvider.cs
- ListenerTraceUtility.cs
- Lease.cs
- RegisteredScript.cs
- XmlArrayAttribute.cs
- IconConverter.cs
- RuntimeIdentifierPropertyAttribute.cs
- MobileFormsAuthentication.cs
- SafeCryptHandles.cs
- _HTTPDateParse.cs
- DataBindingHandlerAttribute.cs
- StrokeCollectionConverter.cs
- KerberosSecurityTokenParameters.cs
- PageVisual.cs
- AttachedPropertyMethodSelector.cs
- ScriptingProfileServiceSection.cs
- ListBindingHelper.cs
- PixelFormatConverter.cs
- LayoutTableCell.cs
- DataGridViewDataErrorEventArgs.cs
- FacetDescription.cs
- DynamicDataRouteHandler.cs
- DbModificationCommandTree.cs
- HttpCapabilitiesSectionHandler.cs
- ResolveCriteriaApril2005.cs
- SwitchAttribute.cs