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
- ExpanderAutomationPeer.cs
- SerializationInfoEnumerator.cs
- SmtpMail.cs
- WebEvents.cs
- SchemaMapping.cs
- SqlEnums.cs
- QuaternionRotation3D.cs
- HandlerFactoryCache.cs
- PropertyGroupDescription.cs
- _OverlappedAsyncResult.cs
- SubpageParaClient.cs
- SqlRowUpdatedEvent.cs
- RoleGroupCollection.cs
- UnicastIPAddressInformationCollection.cs
- ContextInformation.cs
- EntityTypeBase.cs
- DispatcherObject.cs
- SplineKeyFrames.cs
- ObjectQueryExecutionPlan.cs
- QilInvokeEarlyBound.cs
- DataKeyPropertyAttribute.cs
- MSAAWinEventWrap.cs
- SerializableAttribute.cs
- DataStorage.cs
- SharedDp.cs
- ProcessStartInfo.cs
- TemplateField.cs
- NameValueCollection.cs
- ItemList.cs
- RightsManagementPermission.cs
- SoapHttpTransportImporter.cs
- DataGridItemCollection.cs
- CompModSwitches.cs
- EventPrivateKey.cs
- SchemaCollectionPreprocessor.cs
- FormViewUpdatedEventArgs.cs
- PriorityChain.cs
- TraceContext.cs
- MatrixStack.cs
- DataGridColumnReorderingEventArgs.cs
- DummyDataSource.cs
- UIAgentCrashedException.cs
- ResetableIterator.cs
- LogLogRecord.cs
- MessageParameterAttribute.cs
- ExternalFile.cs
- ImageMetadata.cs
- PeerNodeAddress.cs
- ContainerParaClient.cs
- MemberDescriptor.cs
- ChtmlMobileTextWriter.cs
- XmlBinaryReaderSession.cs
- ScrollBar.cs
- ShutDownListener.cs
- VisualTarget.cs
- NonBatchDirectoryCompiler.cs
- ContextBase.cs
- RelationalExpressions.cs
- DuplicateWaitObjectException.cs
- SafeNativeMethods.cs
- MultipartIdentifier.cs
- TCPListener.cs
- PropertyItem.cs
- AuthStoreRoleProvider.cs
- ObjectDataSourceDisposingEventArgs.cs
- ListManagerBindingsCollection.cs
- ReaderWriterLockWrapper.cs
- ScalarType.cs
- CustomErrorsSection.cs
- DataListItem.cs
- HostingPreferredMapPath.cs
- AssemblyBuilderData.cs
- AutomationFocusChangedEventArgs.cs
- CqlParser.cs
- Variant.cs
- HttpPostedFileBase.cs
- ClaimSet.cs
- JulianCalendar.cs
- PlatformCulture.cs
- ProtocolsConfigurationEntry.cs
- IEnumerable.cs
- ButtonStandardAdapter.cs
- SqlDataSourceWizardForm.cs
- XmlNamespaceMapping.cs
- InsufficientExecutionStackException.cs
- DesignTimeVisibleAttribute.cs
- ProfessionalColorTable.cs
- Column.cs
- ResXBuildProvider.cs
- ThemeableAttribute.cs
- StringReader.cs
- CustomAttributeFormatException.cs
- TextRange.cs
- MeshGeometry3D.cs
- DefaultWorkflowTransactionService.cs
- TextDataBindingHandler.cs
- FileIOPermission.cs
- ResourcesGenerator.cs
- FramingFormat.cs
- Attributes.cs