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
- DesignerActionUIStateChangeEventArgs.cs
- SystemWebCachingSectionGroup.cs
- InvalidCastException.cs
- SchemaAttDef.cs
- SerializationFieldInfo.cs
- MetadataUtilsSmi.cs
- MonikerSyntaxException.cs
- Sql8ConformanceChecker.cs
- TimeIntervalCollection.cs
- TypeRefElement.cs
- TraceInternal.cs
- UpdatePanelControlTrigger.cs
- MessageDroppedTraceRecord.cs
- EmbeddedObject.cs
- diagnosticsswitches.cs
- DateTimeValueSerializerContext.cs
- CharacterBuffer.cs
- CodeSnippetExpression.cs
- AccessDataSourceDesigner.cs
- PerformanceCountersElement.cs
- XmlIlVisitor.cs
- LoginAutoFormat.cs
- WindowsGraphicsWrapper.cs
- ApplicationSettingsBase.cs
- SemanticResultKey.cs
- FaultDesigner.cs
- SamlAssertionKeyIdentifierClause.cs
- ServiceTimeoutsBehavior.cs
- OdbcConnectionPoolProviderInfo.cs
- VScrollBar.cs
- ActivityExecutorOperation.cs
- AsymmetricKeyExchangeFormatter.cs
- ElementAtQueryOperator.cs
- PermissionListSet.cs
- XmlArrayAttribute.cs
- TemplateKey.cs
- WebPartMenuStyle.cs
- WebPartConnectionsCloseVerb.cs
- DataServiceProcessingPipeline.cs
- UnsafeNativeMethodsPenimc.cs
- BuilderPropertyEntry.cs
- FolderLevelBuildProvider.cs
- Help.cs
- UdpChannelListener.cs
- UrlUtility.cs
- PrintEvent.cs
- ColumnMapCopier.cs
- TokenBasedSet.cs
- ResXResourceReader.cs
- FixedDSBuilder.cs
- Constraint.cs
- LinearGradientBrush.cs
- HelpKeywordAttribute.cs
- TableRowGroup.cs
- SqlDelegatedTransaction.cs
- GridViewSelectEventArgs.cs
- NumericUpDownAccelerationCollection.cs
- SecureEnvironment.cs
- CompilerTypeWithParams.cs
- DBSchemaTable.cs
- EventKeyword.cs
- GridViewUpdateEventArgs.cs
- TextInfo.cs
- ShutDownListener.cs
- xmlformatgeneratorstatics.cs
- CompilerWrapper.cs
- Random.cs
- DataDocumentXPathNavigator.cs
- Vector3DAnimation.cs
- QilStrConcat.cs
- XmlHierarchicalDataSourceView.cs
- BulletChrome.cs
- RichTextBoxAutomationPeer.cs
- CodeObjectCreateExpression.cs
- SerializableAttribute.cs
- InputMethodStateChangeEventArgs.cs
- IMembershipProvider.cs
- StorageAssociationSetMapping.cs
- ResourceReferenceExpression.cs
- PointUtil.cs
- CurrencyManager.cs
- ObjectSecurity.cs
- CommandBinding.cs
- SchemaMerger.cs
- GridViewRowPresenterBase.cs
- SortedList.cs
- InputEventArgs.cs
- MetadataUtilsSmi.cs
- DataFormats.cs
- DefaultAutoFieldGenerator.cs
- SafeSecurityHandles.cs
- Visual3DCollection.cs
- ComponentResourceKey.cs
- sortedlist.cs
- ExecutionEngineException.cs
- MenuItemBinding.cs
- TCEAdapterGenerator.cs
- ZoneLinkButton.cs
- DefaultTextStore.cs
- CodeIndexerExpression.cs