1414//
1515
1616using System ;
17- using System . Collections ;
18- using System . Diagnostics ;
19- using System . Globalization ;
20- using System . Security ;
21- using Microsoft . Win32 ;
22- using System . IO . Packaging ;
17+ using MS . Win32 ;
2318using System . Windows ;
24- using System . Windows . Interop ;
2519using MS . Internal . Utility ;
26- using MS . Win32 ;
2720using System . Runtime . InteropServices ;
28- using MS . Internal . Documents . Application ;
2921
3022namespace MS . Internal . AppModel
3123{
@@ -38,9 +30,6 @@ enum LaunchResult
3830
3931 internal static class AppSecurityManager
4032 {
41- #region Internal Methods
42-
43-
4433 ///<summary>
4534 /// Safely launch the browser if you can.
4635 /// If you can't demand unmanaged code permisison.
@@ -149,27 +138,5 @@ the key used is (supposedly) HKCR\htmlfile\shell\opennew\ddeexec, and its value
149138 throw new InvalidOperationException ( SR . FailToLaunchDefaultBrowser ,
150139 new System . ComponentModel . Win32Exception ( /*uses the last Win32 error*/ ) ) ;
151140 }
152-
153- #endregion Internal Methods
154-
155- #region Private Methods
156-
157- [ ComImport , ComVisible ( false ) , Guid ( "7b8a2d94-0ac9-11d1-896c-00c04Fb6bfc4" ) ]
158- internal class InternetSecurityManager { }
159-
160-
161- #endregion Private Methods
162-
163- #region Private Fields
164-
165- private const string RefererHeader = "Referer: " ;
166-
167- private const string BrowserOpenCommandLookupKey = "htmlfile\\ shell\\ open\\ command" ;
168-
169- // Object to be used for locking. Using typeof(Util) causes an FxCop
170- // violation DoNotLockOnObjectsWithWeakIdentity
171- private static readonly object _lockObj = new object ( ) ;
172-
173- #endregion Private Fields
174141 }
175142}
0 commit comments