Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / AppModel / securitymgrsite.cs / 1 / securitymgrsite.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // The SecurityMgrSite is an implementation of Urlmon's IInternetSecurityMgrSite. // // It is primarily used to supply an hwnd to be modal to- when a ProcessUrlAction call // is required to show UI. // History: // 03/08/05: [....] Created. //--------------------------------------------------------------------------- using System; using MS.Win32; using System.Runtime.InteropServices; using System.Windows ; using System.Security; using MS.Internal.AppModel; namespace MS.Internal { internal class SecurityMgrSite : NativeMethods.IInternetSecurityMgrSite { internal SecurityMgrSite() { } ////// Critical calls unsecure handle. /// This function should only be called by Urlmon. /// /// Which is un-managed code - ergo also critical. /// [SecurityCritical] public void GetWindow( /* [out] */ ref IntPtr phwnd) { phwnd = IntPtr.Zero; if ( Application.Current != null ) { Window curWindow = Application.Current.MainWindow; Invariant.Assert( Application.Current.BrowserCallbackServices == null || ( curWindow is RootBrowserWindow )); if (curWindow != null) { phwnd = curWindow.CriticalHandle; } } } public void EnableModeless( /* [in] */ bool fEnable) { } } } // 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
- EdmItemCollection.cs
- KnownTypesProvider.cs
- ProjectionPlanCompiler.cs
- Matrix.cs
- FlowDocumentPage.cs
- SqlParameter.cs
- ICspAsymmetricAlgorithm.cs
- DataGridViewToolTip.cs
- SQLResource.cs
- DiagnosticsConfigurationHandler.cs
- BaseCodePageEncoding.cs
- PopupEventArgs.cs
- ZoomPercentageConverter.cs
- ScriptDescriptor.cs
- GeometryModel3D.cs
- RegexCompiler.cs
- AddressHeaderCollectionElement.cs
- GCHandleCookieTable.cs
- WaitHandleCannotBeOpenedException.cs
- ChooseAction.cs
- ObjectParameterCollection.cs
- RpcResponse.cs
- ImageFormat.cs
- FollowerQueueCreator.cs
- ModuleElement.cs
- ComponentGuaranteesAttribute.cs
- X509Chain.cs
- ExtentJoinTreeNode.cs
- AspNetPartialTrustHelpers.cs
- SqlCommandBuilder.cs
- ConstructorArgumentAttribute.cs
- LeaseManager.cs
- DefaultProxySection.cs
- X509Certificate2Collection.cs
- SecurityState.cs
- ErrorsHelper.cs
- WebHttpSecurityElement.cs
- ContextMenuAutomationPeer.cs
- _SecureChannel.cs
- SchemaAttDef.cs
- ObjectComplexPropertyMapping.cs
- ServiceObjectContainer.cs
- Size3DValueSerializer.cs
- GroupBoxAutomationPeer.cs
- WS2007HttpBinding.cs
- MailDefinition.cs
- ListViewUpdateEventArgs.cs
- PropertySegmentSerializationProvider.cs
- CapabilitiesAssignment.cs
- FieldBuilder.cs
- AlternateView.cs
- HttpListenerPrefixCollection.cs
- TimeSpanConverter.cs
- CodeSnippetExpression.cs
- BasicBrowserDialog.cs
- SqlCharStream.cs
- StaticSiteMapProvider.cs
- CharEnumerator.cs
- ImageMetadata.cs
- SerializationBinder.cs
- SqlWebEventProvider.cs
- RegistrySecurity.cs
- ApplicationId.cs
- HighlightVisual.cs
- DateTimeValueSerializerContext.cs
- TransformedBitmap.cs
- TypedTableBaseExtensions.cs
- UnsafeNativeMethods.cs
- ValidatorCompatibilityHelper.cs
- EllipseGeometry.cs
- _ListenerAsyncResult.cs
- AnimatedTypeHelpers.cs
- BooleanSwitch.cs
- PersonalizationDictionary.cs
- MetadataSerializer.cs
- CategoryAttribute.cs
- RevocationPoint.cs
- UIntPtr.cs
- TreeWalkHelper.cs
- SelectedDatesCollection.cs
- XmlSchemaValidationException.cs
- HierarchicalDataSourceControl.cs
- ReadOnlyAttribute.cs
- MobileUITypeEditor.cs
- GacUtil.cs
- DiagnosticStrings.cs
- XmlQueryStaticData.cs
- ApplicationException.cs
- SystemFonts.cs
- VisualStyleElement.cs
- ConfigurationValues.cs
- CodeDirectiveCollection.cs
- XsdDataContractImporter.cs
- GlobalEventManager.cs
- CompilerGeneratedAttribute.cs
- SqlDataSourceView.cs
- CodeObject.cs
- _NestedMultipleAsyncResult.cs
- MessageTraceRecord.cs
- XPathDocumentNavigator.cs