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
- SignatureToken.cs
- ToolStripOverflow.cs
- TextFormatter.cs
- XslTransform.cs
- SQLString.cs
- ParentQuery.cs
- MultiBindingExpression.cs
- HtmlSelect.cs
- QilScopedVisitor.cs
- BigInt.cs
- TextEndOfSegment.cs
- input.cs
- ParseElement.cs
- ImpersonationContext.cs
- MissingFieldException.cs
- DynamicResourceExtensionConverter.cs
- PageThemeParser.cs
- ContextDataSourceContextData.cs
- Array.cs
- ResourceContainer.cs
- AssociationSetMetadata.cs
- RowVisual.cs
- CommentEmitter.cs
- OutputCacheSettingsSection.cs
- HtmlEncodedRawTextWriter.cs
- RegexCaptureCollection.cs
- HtmlInputPassword.cs
- DataGridRowEventArgs.cs
- TransformConverter.cs
- CompilerErrorCollection.cs
- LinkClickEvent.cs
- DateTimeConverter.cs
- WebPartEditorOkVerb.cs
- StackOverflowException.cs
- XhtmlMobileTextWriter.cs
- NameScopePropertyAttribute.cs
- ItemChangedEventArgs.cs
- CanExecuteRoutedEventArgs.cs
- WsatServiceAddress.cs
- NameNode.cs
- GridViewRow.cs
- URLIdentityPermission.cs
- HttpContext.cs
- Debugger.cs
- DataListDesigner.cs
- ToolStripDropDownItem.cs
- NonVisualControlAttribute.cs
- AsyncContentLoadedEventArgs.cs
- SolidColorBrush.cs
- ToolStripPanelCell.cs
- DescendantBaseQuery.cs
- RelationshipSet.cs
- PermissionSet.cs
- UserControlParser.cs
- Win32PrintDialog.cs
- ThreadExceptionEvent.cs
- HotSpotCollection.cs
- ControlPaint.cs
- PrintControllerWithStatusDialog.cs
- DataGridViewCellCancelEventArgs.cs
- ProfileSection.cs
- VisualTreeHelper.cs
- Bits.cs
- ToolStripHighContrastRenderer.cs
- StorageModelBuildProvider.cs
- OleDbTransaction.cs
- TextTreeObjectNode.cs
- ElementNotAvailableException.cs
- CodeDomConfigurationHandler.cs
- DashStyle.cs
- InternalConfigSettingsFactory.cs
- SchemaComplexType.cs
- FieldDescriptor.cs
- XmlWellformedWriter.cs
- GridViewColumnCollection.cs
- MdImport.cs
- DurableEnlistmentState.cs
- XmlNodeWriter.cs
- ContextDataSourceContextData.cs
- HttpHeaderCollection.cs
- GridEntry.cs
- X509SecurityTokenProvider.cs
- NetStream.cs
- XamlBrushSerializer.cs
- EntityTypeBase.cs
- ExpressionReplacer.cs
- NamespaceEmitter.cs
- MoveSizeWinEventHandler.cs
- PrinterResolution.cs
- MappedMetaModel.cs
- GridSplitterAutomationPeer.cs
- Int32CollectionValueSerializer.cs
- SymbolTable.cs
- FixedTextBuilder.cs
- QueryAccessibilityHelpEvent.cs
- ArrayList.cs
- RegexInterpreter.cs
- DirectionalLight.cs
- LookupNode.cs
- AutomationElementCollection.cs