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
- ChtmlFormAdapter.cs
- DiscoveryOperationContextExtension.cs
- ISAPIRuntime.cs
- WindowsGrip.cs
- CodeObjectCreateExpression.cs
- TextContainer.cs
- AlternateViewCollection.cs
- SqlColumnizer.cs
- TimeEnumHelper.cs
- Size3D.cs
- TemplateControlParser.cs
- ArgumentValidation.cs
- XPathDocumentIterator.cs
- ThicknessAnimationBase.cs
- ProjectedSlot.cs
- ThemeableAttribute.cs
- GreenMethods.cs
- AliasExpr.cs
- Vector3DCollection.cs
- DiagnosticsConfigurationHandler.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ValidationResult.cs
- ImageListStreamer.cs
- ElementUtil.cs
- XmlExpressionDumper.cs
- ToolStripPanelCell.cs
- SortedDictionary.cs
- Metafile.cs
- QilBinary.cs
- TextElementEditingBehaviorAttribute.cs
- PipelineModuleStepContainer.cs
- XmlILModule.cs
- MailWebEventProvider.cs
- Misc.cs
- CodeVariableReferenceExpression.cs
- PassportIdentity.cs
- WpfSharedXamlSchemaContext.cs
- VisualStyleElement.cs
- CatalogPartChrome.cs
- Point3DCollectionConverter.cs
- AggregateException.cs
- DiscoveryInnerClientManaged11.cs
- IndexedWhereQueryOperator.cs
- PrintDialog.cs
- NegotiationTokenAuthenticatorStateCache.cs
- ContextMenuStrip.cs
- TextUtf8RawTextWriter.cs
- DirectionalAction.cs
- PageWrapper.cs
- PolicyException.cs
- BitmapData.cs
- SecurityRuntime.cs
- Validator.cs
- VisualTarget.cs
- NameNode.cs
- FlowLayoutSettings.cs
- ConnectionString.cs
- ListBox.cs
- UnmanagedMemoryStreamWrapper.cs
- Parser.cs
- DataSourceXmlClassAttribute.cs
- StringDictionary.cs
- AssociationTypeEmitter.cs
- SetStateDesigner.cs
- EventSinkHelperWriter.cs
- XmlAnyElementAttribute.cs
- StylusPointPropertyInfoDefaults.cs
- RawStylusSystemGestureInputReport.cs
- GuidTagList.cs
- ComPlusTypeLoader.cs
- Accessible.cs
- XmlSchemas.cs
- TaiwanCalendar.cs
- NameSpaceExtractor.cs
- FixedSOMTableRow.cs
- FlatButtonAppearance.cs
- IODescriptionAttribute.cs
- TypeBuilderInstantiation.cs
- ImageButton.cs
- WebPageTraceListener.cs
- Int64Storage.cs
- Internal.cs
- WebResourceAttribute.cs
- TransactedReceiveScope.cs
- XmlAttributeAttribute.cs
- ItemCollection.cs
- DataRecord.cs
- ResourcePermissionBaseEntry.cs
- ContextMarshalException.cs
- DataGridViewBindingCompleteEventArgs.cs
- Calendar.cs
- Version.cs
- ComboBox.cs
- AutomationAttributeInfo.cs
- ToolboxComponentsCreatedEventArgs.cs
- SqlRemoveConstantOrderBy.cs
- AssemblyHash.cs
- XmlCharCheckingReader.cs
- ObjectListComponentEditor.cs
- TabletDeviceInfo.cs