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
- EventProperty.cs
- HtmlTableRowCollection.cs
- UserControl.cs
- Int32CollectionValueSerializer.cs
- ListViewItem.cs
- RoutedEventHandlerInfo.cs
- IndicCharClassifier.cs
- LinkGrep.cs
- UrlMappingsSection.cs
- CollectionChangedEventManager.cs
- QueryOptionExpression.cs
- BitmapEffectrendercontext.cs
- RawStylusSystemGestureInputReport.cs
- MergePropertyDescriptor.cs
- WebServiceFault.cs
- TextWriter.cs
- ContentPlaceHolder.cs
- XamlSerializerUtil.cs
- SemanticResolver.cs
- SqlCommandBuilder.cs
- EditingMode.cs
- ClientRolePrincipal.cs
- HwndProxyElementProvider.cs
- Parser.cs
- MembershipValidatePasswordEventArgs.cs
- ServiceOperation.cs
- StorageBasedPackageProperties.cs
- ProviderConnectionPoint.cs
- WebInvokeAttribute.cs
- DragEventArgs.cs
- UnsafeNativeMethods.cs
- TableChangeProcessor.cs
- PropertyGridCommands.cs
- ScrollItemPattern.cs
- InstanceStoreQueryResult.cs
- Model3DGroup.cs
- NotifyInputEventArgs.cs
- HostDesigntimeLicenseContext.cs
- CodeSnippetTypeMember.cs
- PageContent.cs
- MonthCalendarDesigner.cs
- TemplateKey.cs
- MasterPageParser.cs
- URI.cs
- DependencyPropertyAttribute.cs
- WinEventTracker.cs
- DataException.cs
- BlurEffect.cs
- PageClientProxyGenerator.cs
- RuntimeConfig.cs
- AmbientProperties.cs
- DataBinding.cs
- RawStylusInputCustomDataList.cs
- XpsLiterals.cs
- LinearQuaternionKeyFrame.cs
- ParseNumbers.cs
- Configuration.cs
- AppDomainUnloadedException.cs
- PackageRelationship.cs
- IHttpResponseInternal.cs
- Cursor.cs
- ReadOnlyCollection.cs
- EventLogEntryCollection.cs
- TargetParameterCountException.cs
- StringUtil.cs
- NativeMethods.cs
- JsonUriDataContract.cs
- PrintPreviewDialog.cs
- FindCriteriaCD1.cs
- DetailsViewModeEventArgs.cs
- XAMLParseException.cs
- RangeBaseAutomationPeer.cs
- TreeViewImageIndexConverter.cs
- FontCacheUtil.cs
- SimpleMailWebEventProvider.cs
- CatalogPartChrome.cs
- InvalidAsynchronousStateException.cs
- Brush.cs
- ThreadStartException.cs
- PixelFormatConverter.cs
- HybridDictionary.cs
- ChtmlTextBoxAdapter.cs
- SvcMapFileSerializer.cs
- SizeIndependentAnimationStorage.cs
- InvokeWebServiceDesigner.cs
- AbsoluteQuery.cs
- ApplicationDirectoryMembershipCondition.cs
- BufferAllocator.cs
- FacetEnabledSchemaElement.cs
- XmlSignatureProperties.cs
- StateDesigner.cs
- InstanceData.cs
- HtmlSelect.cs
- EntityStoreSchemaFilterEntry.cs
- ColorTransformHelper.cs
- XmlILModule.cs
- WindowsTitleBar.cs
- MatrixAnimationBase.cs
- ExpressionEditorSheet.cs
- SiteMapNodeItem.cs