Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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: 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. //---------------------------------------------------------------------------- // //// 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
- Hyperlink.cs
- JpegBitmapEncoder.cs
- PointValueSerializer.cs
- ComponentResourceManager.cs
- CurrencyWrapper.cs
- DurableRuntimeValidator.cs
- PropertyRef.cs
- ImportContext.cs
- ContextStaticAttribute.cs
- QuaternionAnimationBase.cs
- ClientRuntime.cs
- SafeSecurityHelper.cs
- IconConverter.cs
- TextEvent.cs
- StorageBasedPackageProperties.cs
- DocumentOrderComparer.cs
- updatecommandorderer.cs
- CommonProperties.cs
- AnnotationAdorner.cs
- CellConstant.cs
- WindowsSolidBrush.cs
- WebPartDescription.cs
- ValueType.cs
- SecurityTokenSerializer.cs
- X509ClientCertificateAuthenticationElement.cs
- ExpressionVisitor.cs
- xdrvalidator.cs
- WebControlParameterProxy.cs
- FixedDocument.cs
- ExpressionBinding.cs
- MemberRestriction.cs
- DataRowChangeEvent.cs
- Matrix3DConverter.cs
- BinaryMethodMessage.cs
- TextSegment.cs
- XmlWrappingReader.cs
- FormView.cs
- DataFormats.cs
- SettingsAttributeDictionary.cs
- UserMapPath.cs
- GenericAuthenticationEventArgs.cs
- InputLangChangeRequestEvent.cs
- SimpleTypeResolver.cs
- CompareValidator.cs
- EntityViewContainer.cs
- TreeNodeStyle.cs
- CancellationHandlerDesigner.cs
- LZCodec.cs
- SelectorItemAutomationPeer.cs
- UserControl.cs
- NavigatorInvalidBodyAccessException.cs
- ConnectionPoint.cs
- ServiceNameElement.cs
- DataObjectEventArgs.cs
- EqualityComparer.cs
- ScrollEvent.cs
- RegexCharClass.cs
- CompiledIdentityConstraint.cs
- TextDecorationLocationValidation.cs
- XPathNode.cs
- StatusBarPanel.cs
- FormViewDeletedEventArgs.cs
- Lease.cs
- StateMachineWorkflowDesigner.cs
- GuidTagList.cs
- COMException.cs
- ComContractElementCollection.cs
- PasswordValidationException.cs
- RuntimeCompatibilityAttribute.cs
- ParsedAttributeCollection.cs
- DataSourceControl.cs
- SchemaHelper.cs
- XmlAutoDetectWriter.cs
- TextElement.cs
- GridItemCollection.cs
- DateTimeFormat.cs
- XmlElementAttribute.cs
- NameValueFileSectionHandler.cs
- SystemException.cs
- UInt32.cs
- x509utils.cs
- ConstantCheck.cs
- InvokePatternIdentifiers.cs
- ColorIndependentAnimationStorage.cs
- TabRenderer.cs
- StrokeRenderer.cs
- RTLAwareMessageBox.cs
- WhitespaceRuleLookup.cs
- EventSetter.cs
- RangeValidator.cs
- SerializationHelper.cs
- PeerIPHelper.cs
- HtmlToClrEventProxy.cs
- DataServiceRequestException.cs
- DBNull.cs
- ImageMapEventArgs.cs
- MachineKey.cs
- HighlightComponent.cs
- StopStoryboard.cs
- MenuItemStyleCollection.cs