Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / AppModel / securitymgrsite.cs / 1305600 / 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: marka 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
- querybuilder.cs
- FrameworkElementAutomationPeer.cs
- XmlQueryTypeFactory.cs
- HttpApplicationStateBase.cs
- ExtendedPropertiesHandler.cs
- RNGCryptoServiceProvider.cs
- DatatypeImplementation.cs
- ListSurrogate.cs
- TabControl.cs
- RedistVersionInfo.cs
- SQLDecimalStorage.cs
- DataGridToolTip.cs
- WebPartZoneBase.cs
- ObjectAssociationEndMapping.cs
- SelectionProcessor.cs
- Request.cs
- DelegatingConfigHost.cs
- SecurityPermission.cs
- ScaleTransform.cs
- EntityProxyFactory.cs
- MediaSystem.cs
- HierarchicalDataTemplate.cs
- WebPartHeaderCloseVerb.cs
- XmlNotation.cs
- filewebresponse.cs
- DrawListViewSubItemEventArgs.cs
- DataBoundControl.cs
- Assembly.cs
- BitmapEffectInput.cs
- Relationship.cs
- XmlILCommand.cs
- GridProviderWrapper.cs
- XmlQueryStaticData.cs
- IntSecurity.cs
- NumberFormatInfo.cs
- CardSpaceShim.cs
- XPathBuilder.cs
- ColorAnimationBase.cs
- XmlAnyElementAttribute.cs
- LocatorBase.cs
- ByeMessageApril2005.cs
- ExitEventArgs.cs
- validationstate.cs
- BooleanStorage.cs
- ReflectionHelper.cs
- HelpKeywordAttribute.cs
- ReaderWriterLock.cs
- DiscoveryClientReferences.cs
- DesigntimeLicenseContextSerializer.cs
- MulticastNotSupportedException.cs
- DBCommand.cs
- TextRangeSerialization.cs
- ListItemsPage.cs
- Random.cs
- HwndAppCommandInputProvider.cs
- ModelVisual3D.cs
- LinqDataSourceHelper.cs
- ChameleonKey.cs
- SystemResourceKey.cs
- FormsAuthenticationTicket.cs
- KeyInterop.cs
- SourceElementsCollection.cs
- ReferentialConstraintRoleElement.cs
- XmlObjectSerializerReadContextComplex.cs
- CompilationLock.cs
- BorderGapMaskConverter.cs
- MLangCodePageEncoding.cs
- ReflectionTypeLoadException.cs
- DataGridViewRowCollection.cs
- SoapSchemaExporter.cs
- IOException.cs
- DrawingCollection.cs
- MenuCommand.cs
- AdCreatedEventArgs.cs
- JoinGraph.cs
- XPathConvert.cs
- SqlDataSourceStatusEventArgs.cs
- ScriptResourceAttribute.cs
- ProtectedConfigurationSection.cs
- HtmlMeta.cs
- RequestTimeoutManager.cs
- ModulesEntry.cs
- MouseDevice.cs
- WebReferencesBuildProvider.cs
- _emptywebproxy.cs
- SQLDateTime.cs
- XmlILModule.cs
- TextServicesHost.cs
- DependencyPropertyChangedEventArgs.cs
- EmissiveMaterial.cs
- StylusDevice.cs
- HyperlinkAutomationPeer.cs
- SqlUtils.cs
- PropertyMapper.cs
- SqlDataReader.cs
- MetaTable.cs
- QilReference.cs
- XsdBuildProvider.cs
- SmtpAuthenticationManager.cs
- XmlDataSourceNodeDescriptor.cs