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
- XmlWhitespace.cs
- OledbConnectionStringbuilder.cs
- CircleHotSpot.cs
- RoutedUICommand.cs
- ResourceType.cs
- EdmFunctionAttribute.cs
- DataControlImageButton.cs
- BufferModeSettings.cs
- DecimalConstantAttribute.cs
- UriScheme.cs
- PagesChangedEventArgs.cs
- MimeMultiPart.cs
- SizeAnimation.cs
- SequenceFullException.cs
- MethodCallTranslator.cs
- ParagraphResult.cs
- CompositeDataBoundControl.cs
- XmlSchemaException.cs
- querybuilder.cs
- FieldNameLookup.cs
- CodeExpressionCollection.cs
- WinEventWrap.cs
- WmpBitmapDecoder.cs
- basecomparevalidator.cs
- cookiecollection.cs
- BuildProviderCollection.cs
- CodeEntryPointMethod.cs
- XmlSchemaGroup.cs
- FormatConvertedBitmap.cs
- Timeline.cs
- CheckedListBox.cs
- KeyPressEvent.cs
- TdsParameterSetter.cs
- GZipDecoder.cs
- TrackingProfile.cs
- HttpVersion.cs
- ChildTable.cs
- CodeDOMUtility.cs
- WeakReferenceEnumerator.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- BufferedGraphics.cs
- Token.cs
- ManualResetEvent.cs
- HuffCodec.cs
- FrameworkContentElement.cs
- MatrixAnimationBase.cs
- ListBox.cs
- DockProviderWrapper.cs
- DuplicateWaitObjectException.cs
- ProvidePropertyAttribute.cs
- StubHelpers.cs
- StrongTypingException.cs
- OletxDependentTransaction.cs
- FragmentNavigationEventArgs.cs
- SamlAuthorizationDecisionStatement.cs
- RoutedUICommand.cs
- DataControlLinkButton.cs
- ThicknessAnimationUsingKeyFrames.cs
- HttpCookieCollection.cs
- ViewCellSlot.cs
- IndexerReference.cs
- HttpRequestContext.cs
- AttributeProviderAttribute.cs
- IdentifierElement.cs
- PersistenceTypeAttribute.cs
- BrowserCapabilitiesCodeGenerator.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- XmlIlGenerator.cs
- SQLInt16Storage.cs
- GroupStyle.cs
- DPTypeDescriptorContext.cs
- IPPacketInformation.cs
- MergePropertyDescriptor.cs
- PropertyMap.cs
- OrCondition.cs
- TemplateBindingExpressionConverter.cs
- EntityTransaction.cs
- IdentityNotMappedException.cs
- oledbmetadatacollectionnames.cs
- TypeSystem.cs
- ALinqExpressionVisitor.cs
- DrawingVisual.cs
- ExtendedPropertyInfo.cs
- OdbcDataReader.cs
- UriSection.cs
- DragEventArgs.cs
- BypassElement.cs
- DiscoveryMessageProperty.cs
- Decimal.cs
- MgmtConfigurationRecord.cs
- SendDesigner.xaml.cs
- AutoGeneratedField.cs
- _FixedSizeReader.cs
- TraceUtility.cs
- GroupItemAutomationPeer.cs
- AppDomainManager.cs
- DbInsertCommandTree.cs
- SafeMILHandle.cs
- DrawingContextWalker.cs
- DesignerUtility.cs