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
- IsolatedStorageException.cs
- WaitHandle.cs
- Listbox.cs
- HijriCalendar.cs
- InternalMappingException.cs
- HelpKeywordAttribute.cs
- InstanceLockTracking.cs
- InkCanvasSelectionAdorner.cs
- _ProxyChain.cs
- SimpleParser.cs
- XmlDocumentFragment.cs
- InputBinding.cs
- EventListenerClientSide.cs
- UdpUtility.cs
- ArgumentNullException.cs
- Window.cs
- MemoryMappedViewAccessor.cs
- TextTreePropertyUndoUnit.cs
- Mapping.cs
- MouseDevice.cs
- DataBinder.cs
- StylusSystemGestureEventArgs.cs
- HttpRuntime.cs
- FrameAutomationPeer.cs
- RightsManagementUser.cs
- SqlBulkCopyColumnMappingCollection.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- XsdBuildProvider.cs
- HttpCapabilitiesEvaluator.cs
- CmsInterop.cs
- Polygon.cs
- PropertyMap.cs
- HttpContextServiceHost.cs
- dbenumerator.cs
- GeneralTransform3D.cs
- WsdlImporterElement.cs
- InternalBase.cs
- HttpModuleAction.cs
- _BaseOverlappedAsyncResult.cs
- Keyboard.cs
- QilCloneVisitor.cs
- Latin1Encoding.cs
- BitmapEncoder.cs
- EntityTemplateUserControl.cs
- ExpressionLexer.cs
- StringComparer.cs
- System.Data_BID.cs
- StringConcat.cs
- SiteOfOriginContainer.cs
- WebSysDescriptionAttribute.cs
- Viewport3DVisual.cs
- DocumentPage.cs
- UnSafeCharBuffer.cs
- PagerStyle.cs
- WebPartConnectionsConfigureVerb.cs
- DbDataReader.cs
- SecurityResources.cs
- StringSource.cs
- RowParagraph.cs
- StrokeRenderer.cs
- EncodingInfo.cs
- ThreadInterruptedException.cs
- BamlLocalizabilityResolver.cs
- DbCommandDefinition.cs
- Point3DCollectionConverter.cs
- LoadGrammarCompletedEventArgs.cs
- EpmCustomContentSerializer.cs
- ConstructorExpr.cs
- FilterEventArgs.cs
- LineProperties.cs
- SharedPerformanceCounter.cs
- ChtmlTextWriter.cs
- PartitionedStreamMerger.cs
- CodeSubDirectoriesCollection.cs
- CallTemplateAction.cs
- GroupBox.cs
- ObjectAnimationUsingKeyFrames.cs
- BindingOperations.cs
- DragStartedEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- KerberosSecurityTokenAuthenticator.cs
- SessionStateSection.cs
- ClonableStack.cs
- LinqDataSourceSelectEventArgs.cs
- COM2IProvidePropertyBuilderHandler.cs
- MergePropertyDescriptor.cs
- NameTable.cs
- ColorDialog.cs
- ConfigurationSettings.cs
- XmlSchemaAnnotation.cs
- LongValidator.cs
- Baml2006ReaderFrame.cs
- SrgsRule.cs
- CodeAttributeArgument.cs
- XmlSchemaInferenceException.cs
- unsafeIndexingFilterStream.cs
- FormViewUpdateEventArgs.cs
- BitmapEffect.cs
- TaskDesigner.cs
- ChannelManagerBase.cs