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
- GetImportFileNameRequest.cs
- LineInfo.cs
- MailWebEventProvider.cs
- Function.cs
- Dictionary.cs
- SystemUdpStatistics.cs
- CultureTableRecord.cs
- ContainerActivationHelper.cs
- XmlIgnoreAttribute.cs
- AppDomainProtocolHandler.cs
- DPCustomTypeDescriptor.cs
- MessageEncodingBindingElement.cs
- RegexWriter.cs
- VerificationAttribute.cs
- ThaiBuddhistCalendar.cs
- KeyInfo.cs
- MenuCommand.cs
- ClientData.cs
- ObjectParameterCollection.cs
- X509KeyIdentifierClauseType.cs
- ComponentEvent.cs
- DateTimeOffsetConverter.cs
- MoveSizeWinEventHandler.cs
- Roles.cs
- ImageButton.cs
- RootNamespaceAttribute.cs
- _Events.cs
- FileLevelControlBuilderAttribute.cs
- ProxyWebPartConnectionCollection.cs
- ClientBase.cs
- XmlHierarchicalEnumerable.cs
- PasswordBox.cs
- QueryContinueDragEvent.cs
- SynchronizationLockException.cs
- AsymmetricKeyExchangeDeformatter.cs
- ItemType.cs
- ScriptControl.cs
- CodeSnippetCompileUnit.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- LoginView.cs
- XmlAnyAttributeAttribute.cs
- AssemblyBuilder.cs
- MembershipSection.cs
- NativeCppClassAttribute.cs
- namescope.cs
- Rect3DValueSerializer.cs
- PropertyPath.cs
- ContentPlaceHolder.cs
- SqlNodeTypeOperators.cs
- CanonicalFontFamilyReference.cs
- DataGridHeaderBorder.cs
- DataRelationPropertyDescriptor.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- Pen.cs
- KeyInstance.cs
- Boolean.cs
- Effect.cs
- HtmlButton.cs
- DataKeyCollection.cs
- SystemUnicastIPAddressInformation.cs
- WriterOutput.cs
- MenuItem.cs
- ContractTypeNameElement.cs
- DiscoveryRequestHandler.cs
- QueryBranchOp.cs
- QueryContinueDragEvent.cs
- UnlockInstanceAsyncResult.cs
- PerformanceCounter.cs
- SystemParameters.cs
- ColorMap.cs
- RequestBringIntoViewEventArgs.cs
- Roles.cs
- RemotingAttributes.cs
- OverlappedContext.cs
- Rights.cs
- InternalDuplexBindingElement.cs
- OdbcRowUpdatingEvent.cs
- AsyncContentLoadedEventArgs.cs
- NullableFloatSumAggregationOperator.cs
- ContainerUtilities.cs
- CursorConverter.cs
- WebSysDefaultValueAttribute.cs
- Vector.cs
- XmlCharCheckingWriter.cs
- ISessionStateStore.cs
- StackOverflowException.cs
- WebEvents.cs
- CompensatableTransactionScopeActivity.cs
- MatrixTransform3D.cs
- RequestSecurityToken.cs
- UxThemeWrapper.cs
- ManagementQuery.cs
- MemberPathMap.cs
- GeneralTransform.cs
- ServiceInfoCollection.cs
- TTSEvent.cs
- ManipulationCompletedEventArgs.cs
- StringInfo.cs
- webbrowsersite.cs
- EventMappingSettings.cs