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
- ECDsaCng.cs
- MethodImplAttribute.cs
- FlowLayoutPanel.cs
- RandomNumberGenerator.cs
- WebExceptionStatus.cs
- BamlRecordWriter.cs
- DbConnectionInternal.cs
- SpecialNameAttribute.cs
- SHA256.cs
- CompositionAdorner.cs
- XmlObjectSerializerReadContextComplex.cs
- WindowsToolbarAsMenu.cs
- AppliedDeviceFiltersDialog.cs
- prefixendpointaddressmessagefilter.cs
- RootBrowserWindow.cs
- FormsAuthenticationEventArgs.cs
- BitSet.cs
- XmlAtomicValue.cs
- Page.cs
- SmtpAuthenticationManager.cs
- PrinterResolution.cs
- TypeGeneratedEventArgs.cs
- XPathSelfQuery.cs
- HwndSourceParameters.cs
- DataGridViewColumnCollectionDialog.cs
- TraceSwitch.cs
- uribuilder.cs
- DrawingServices.cs
- BaseValidator.cs
- MouseEventArgs.cs
- InkCanvasSelectionAdorner.cs
- XmlChildEnumerator.cs
- MailFileEditor.cs
- MachinePropertyVariants.cs
- FontStyles.cs
- SiteMapSection.cs
- AlphabeticalEnumConverter.cs
- ImageDesigner.cs
- ContentElement.cs
- BindingNavigator.cs
- VoiceObjectToken.cs
- COM2PropertyBuilderUITypeEditor.cs
- FastPropertyAccessor.cs
- __FastResourceComparer.cs
- SessionStateModule.cs
- ConfigurationManagerInternal.cs
- RawTextInputReport.cs
- TraceContext.cs
- DatatypeImplementation.cs
- Guid.cs
- SHA384.cs
- sqlinternaltransaction.cs
- FormattedTextSymbols.cs
- MobileRedirect.cs
- DataControlFieldCollection.cs
- ProfileSettingsCollection.cs
- SoapFormatterSinks.cs
- StylusCollection.cs
- TrackBarRenderer.cs
- KeyGestureConverter.cs
- LookupNode.cs
- AppDomainUnloadedException.cs
- XmlSchemaComplexType.cs
- DependencyPropertyConverter.cs
- MessageBox.cs
- DataKey.cs
- ModuleConfigurationInfo.cs
- ObjectPersistData.cs
- CollectionView.cs
- SqlException.cs
- XmlSchemaImporter.cs
- TemplateBindingExtensionConverter.cs
- AgileSafeNativeMemoryHandle.cs
- ShapingWorkspace.cs
- COSERVERINFO.cs
- ConnectionPoint.cs
- ScaleTransform.cs
- CharacterBuffer.cs
- TranslateTransform3D.cs
- PersonalizableAttribute.cs
- UICuesEvent.cs
- MenuItem.cs
- GacUtil.cs
- AppDomainProtocolHandler.cs
- RequiredArgumentAttribute.cs
- TypedElement.cs
- IntegerValidatorAttribute.cs
- ThemeDictionaryExtension.cs
- _LocalDataStoreMgr.cs
- Vector3DAnimationBase.cs
- DBSchemaTable.cs
- IPCCacheManager.cs
- XmlSchemaChoice.cs
- ParseHttpDate.cs
- FixedSOMFixedBlock.cs
- DbTransaction.cs
- OdbcError.cs
- MimeObjectFactory.cs
- ClientBuildManager.cs
- ClientSideQueueItem.cs