14
14
//
15
15
16
16
using 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 ;
23
18
using System . Windows ;
24
- using System . Windows . Interop ;
25
19
using MS . Internal . Utility ;
26
- using MS . Win32 ;
27
20
using System . Runtime . InteropServices ;
28
- using MS . Internal . Documents . Application ;
29
21
30
22
namespace MS . Internal . AppModel
31
23
{
@@ -38,9 +30,6 @@ enum LaunchResult
38
30
39
31
internal static class AppSecurityManager
40
32
{
41
- #region Internal Methods
42
-
43
-
44
33
///<summary>
45
34
/// Safely launch the browser if you can.
46
35
/// 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
149
138
throw new InvalidOperationException ( SR . FailToLaunchDefaultBrowser ,
150
139
new System . ComponentModel . Win32Exception ( /*uses the last Win32 error*/ ) ) ;
151
140
}
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
174
141
}
175
142
}
0 commit comments