Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / AppModel / securitymgrsite.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Effect.cs
- DesignerActionItemCollection.cs
- FragmentNavigationEventArgs.cs
- ToolStripDesigner.cs
- Wildcard.cs
- HTMLTextWriter.cs
- EditorPartChrome.cs
- UnsafeCollabNativeMethods.cs
- ListViewGroupItemCollection.cs
- ActivationServices.cs
- HelpInfo.cs
- DescriptionCreator.cs
- SequentialUshortCollection.cs
- StdValidatorsAndConverters.cs
- FormViewPageEventArgs.cs
- StateMachine.cs
- CodeSnippetExpression.cs
- ReadOnlyActivityGlyph.cs
- AdornerDecorator.cs
- CharConverter.cs
- CharacterBufferReference.cs
- LoadedOrUnloadedOperation.cs
- CollectionViewSource.cs
- JsonDataContract.cs
- Selection.cs
- Stylus.cs
- DataGridViewColumnEventArgs.cs
- DropDownList.cs
- XmlJsonReader.cs
- OperationAbortedException.cs
- DiscoveryRequestHandler.cs
- SerialStream.cs
- EndpointDiscoveryMetadata11.cs
- FileDialog_Vista.cs
- StringAttributeCollection.cs
- SelectionPattern.cs
- XDRSchema.cs
- Renderer.cs
- DataGridViewColumnConverter.cs
- ContentValidator.cs
- BinHexDecoder.cs
- SkewTransform.cs
- WindowsRegion.cs
- ConstructorArgumentAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SettingsBase.cs
- ToolboxItemAttribute.cs
- ResourceReferenceKeyNotFoundException.cs
- PipeConnection.cs
- ReadWriteSpinLock.cs
- RootBrowserWindowProxy.cs
- ResourceReferenceKeyNotFoundException.cs
- Paragraph.cs
- remotingproxy.cs
- ProtocolElement.cs
- TraceListener.cs
- TypeBuilderInstantiation.cs
- SetStoryboardSpeedRatio.cs
- ConnectAlgorithms.cs
- AnimationStorage.cs
- PeerTransportListenAddressValidator.cs
- CfgParser.cs
- HandleCollector.cs
- BufferCache.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- SQLChars.cs
- FileAuthorizationModule.cs
- ListItemCollection.cs
- CodeAttachEventStatement.cs
- sqlpipe.cs
- DelimitedListTraceListener.cs
- NetworkInformationException.cs
- XmlnsDictionary.cs
- Transform.cs
- DrawToolTipEventArgs.cs
- CodePrimitiveExpression.cs
- RuntimeWrappedException.cs
- EventHandlersStore.cs
- Helpers.cs
- XPathEmptyIterator.cs
- LightweightEntityWrapper.cs
- WebServiceHandlerFactory.cs
- XmlEntity.cs
- WebScriptEnablingElement.cs
- ToolStripSystemRenderer.cs
- validation.cs
- DataObjectPastingEventArgs.cs
- DeferredReference.cs
- CustomPopupPlacement.cs
- RequestBringIntoViewEventArgs.cs
- UriSection.cs
- DbDataSourceEnumerator.cs
- FontResourceCache.cs
- TypeConverterHelper.cs
- SqlConnectionStringBuilder.cs
- XslUrlEditor.cs
- BitmapDecoder.cs
- PerformanceCounterPermissionAttribute.cs
- SelectorAutomationPeer.cs
- HostDesigntimeLicenseContext.cs