Remove MapSecurityZoneWithUrlmon method and related code - #7103
Conversation
Andrew (anmenaga)
left a comment
There was a problem hiding this comment.
Neither "PR Summary" nor original issue have a description why this change is necessary.
Rob Holt (@rjmholt) says in the summary
|
| @@ -139,19 +139,11 @@ internal static SecurityZone GetFileSecurityZone(string filePath) | |||
| Diagnostics.Assert(Path.IsPathRooted(filePath), "Caller makes sure the path is rooted."); | |||
| Diagnostics.Assert(Utils.FileExists(filePath), "Caller makes sure the file exists."); | |||
| string sysRoot = System.Environment.GetEnvironmentVariable("SystemRoot"); | |||
There was a problem hiding this comment.
This variable is not used anymore.
| @@ -448,60 +403,6 @@ private static class NativeMethods | |||
| internal static extern uint GetACP(); | |||
|
|
|||
| public const int S_OK = 0x00000000; | |||
There was a problem hiding this comment.
Is this one still used anywhere?
| @@ -448,60 +403,6 @@ private static class NativeMethods | |||
| internal static extern uint GetACP(); | |||
There was a problem hiding this comment.
This function doesn't seem to be used anymore.
|
Travis Plunk (@TravisEz13) "edited" after I posted the request. :) |
|
Andrew (@anmenaga) I'm not sure you get notified of edits and the timing wasn't perfectly clear. |
|
Looks like the test failure is |
|
Not sure if that can be fixed in this PR |
PR Summary
Fixes #6919: Removes the
MapSecurityZoneWithUrlmonmethod and the native interface it uses.MapSecurityZoneWithUrlmonuses an unsupported API call, and this ensures we use a supported API to improve quality.PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests