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
- EastAsianLunisolarCalendar.cs
- MsmqIntegrationBindingElement.cs
- RemotingException.cs
- PathFigure.cs
- COM2Properties.cs
- DiscoveryInnerClientAdhoc11.cs
- Propagator.cs
- PasswordValidationException.cs
- DataSvcMapFile.cs
- relpropertyhelper.cs
- EntityClassGenerator.cs
- ControlCommandSet.cs
- MethodToken.cs
- SchemaImporterExtension.cs
- MgmtResManager.cs
- SafePointer.cs
- TableLayoutCellPaintEventArgs.cs
- ContentOperations.cs
- FixedSOMPage.cs
- ScrollProviderWrapper.cs
- DocumentOrderQuery.cs
- TimelineGroup.cs
- RewritingSimplifier.cs
- TraceHandler.cs
- IFlowDocumentViewer.cs
- XmlExpressionDumper.cs
- UrlPath.cs
- SortedDictionary.cs
- ThreadExceptionDialog.cs
- RegexTree.cs
- TextEndOfSegment.cs
- NotifyParentPropertyAttribute.cs
- SubqueryRules.cs
- Matrix3D.cs
- IfAction.cs
- externdll.cs
- entityreference_tresulttype.cs
- QueryResponse.cs
- ListControl.cs
- GeneratedContractType.cs
- TemplateColumn.cs
- SystemIPAddressInformation.cs
- GeneralTransform3DTo2D.cs
- TranslateTransform.cs
- DefaultValueMapping.cs
- XmlSchemaComplexType.cs
- DebuggerAttributes.cs
- NotifyParentPropertyAttribute.cs
- ConfigurationValidatorBase.cs
- ValidatorAttribute.cs
- TitleStyle.cs
- DataPagerField.cs
- UnionCqlBlock.cs
- Color.cs
- AdornerLayer.cs
- CallbackHandler.cs
- StyleXamlParser.cs
- CodeDomLoader.cs
- XPathExpr.cs
- EndpointNameMessageFilter.cs
- LambdaCompiler.Statements.cs
- HitTestWithPointDrawingContextWalker.cs
- RowUpdatedEventArgs.cs
- DynamicResourceExtension.cs
- SelectedGridItemChangedEvent.cs
- RouteTable.cs
- AudioLevelUpdatedEventArgs.cs
- Cell.cs
- BindingManagerDataErrorEventArgs.cs
- ObjectListFieldCollection.cs
- ChannelBinding.cs
- ElementProxy.cs
- Fx.cs
- SqlUserDefinedTypeAttribute.cs
- FormViewDesigner.cs
- ModelTreeEnumerator.cs
- ipaddressinformationcollection.cs
- ColorInterpolationModeValidation.cs
- CompilerGeneratedAttribute.cs
- ILGenerator.cs
- ActiveDocumentEvent.cs
- MetadataWorkspace.cs
- IgnoreFileBuildProvider.cs
- TextRangeEditLists.cs
- BoolExpression.cs
- AppSettingsExpressionBuilder.cs
- FixedSOMLineRanges.cs
- UndoUnit.cs
- WebConfigurationHost.cs
- UrlMapping.cs
- RelationshipType.cs
- DirectoryRedirect.cs
- XamlStream.cs
- RewritingProcessor.cs
- ClrProviderManifest.cs
- SchemaManager.cs
- ExtensionElementCollection.cs
- RecognizeCompletedEventArgs.cs
- WebUtil.cs
- FormsIdentity.cs