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
- Timeline.cs
- RegexTree.cs
- DecimalAverageAggregationOperator.cs
- FontStyle.cs
- TreeNodeStyle.cs
- _ShellExpression.cs
- SymbolType.cs
- PrintingPermission.cs
- RootBrowserWindow.cs
- TrackingProfileSerializer.cs
- IIS7UserPrincipal.cs
- SevenBitStream.cs
- IntSecurity.cs
- DataBindingCollection.cs
- GcHandle.cs
- RNGCryptoServiceProvider.cs
- WindowsRegion.cs
- login.cs
- OdbcEnvironment.cs
- Missing.cs
- WebInvokeAttribute.cs
- ClientConfigurationHost.cs
- FieldMetadata.cs
- BaseDataList.cs
- ListInitExpression.cs
- DbParameterCollectionHelper.cs
- MetadataWorkspace.cs
- FormsAuthenticationEventArgs.cs
- KeyToListMap.cs
- DescriptionAttribute.cs
- WebBrowserBase.cs
- ExpressionBindingCollection.cs
- BindingList.cs
- TextBoxRenderer.cs
- Control.cs
- DesignSurface.cs
- ProcessThreadCollection.cs
- FamilyMap.cs
- MD5HashHelper.cs
- DebugView.cs
- FormViewModeEventArgs.cs
- DrawListViewColumnHeaderEventArgs.cs
- ConnectionProviderAttribute.cs
- BlobPersonalizationState.cs
- BeginStoryboard.cs
- Material.cs
- CachedPathData.cs
- EntityDataReader.cs
- SingleAnimation.cs
- ProcessHostFactoryHelper.cs
- EventLogInternal.cs
- UnicodeEncoding.cs
- WaveHeader.cs
- BitStream.cs
- SocketAddress.cs
- CodeCastExpression.cs
- FormViewPagerRow.cs
- BuildResultCache.cs
- AsymmetricAlgorithm.cs
- ListView.cs
- WizardForm.cs
- EventLogPermission.cs
- TextContainerChangeEventArgs.cs
- DesignerAutoFormatStyle.cs
- SectionUpdates.cs
- ProfileModule.cs
- newitemfactory.cs
- Error.cs
- TraceContextRecord.cs
- CompositeTypefaceMetrics.cs
- GZipDecoder.cs
- __Filters.cs
- ReaderWriterLock.cs
- RemotingConfigParser.cs
- ToolStripGrip.cs
- followingquery.cs
- DataColumnMapping.cs
- WebPartManager.cs
- Crc32.cs
- DataFormats.cs
- ScrollViewerAutomationPeer.cs
- FormatException.cs
- FtpCachePolicyElement.cs
- MessageVersion.cs
- ExpressionBinding.cs
- UpdateException.cs
- Query.cs
- StringUtil.cs
- ParserExtension.cs
- SymbolMethod.cs
- ConfigurationSectionGroupCollection.cs
- CompilerTypeWithParams.cs
- HttpListener.cs
- MemoryMappedViewStream.cs
- LabelDesigner.cs
- SynchronizedPool.cs
- XD.cs
- OdbcConnectionOpen.cs
- SerializerWriterEventHandlers.cs
- DataGridColumnCollection.cs