Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ private IntPtr GetSaclWithCapId(string capStr)
}

// Add CAPID to the SACL.
rs = NativeMethods.RtlAddScopedPolicyIDAce(
rs = NativeMethods.AddScopedPolicyIDAce(
pSacl,
NativeMethods.ACL_REVISION,
NativeMethods.SUB_CONTAINERS_AND_OBJECTS_INHERIT,
Expand Down
4 changes: 2 additions & 2 deletions src/System.Management.Automation/security/nativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1786,8 +1786,8 @@ internal static extern bool InitializeAcl(
uint nAclLength,
uint dwAclRevision);

[DllImport("ntdll.dll", CharSet = CharSet.Unicode)]
internal static extern uint RtlAddScopedPolicyIDAce(
[DllImport("api-ms-win-security-base-l1-2-0.dll", CharSet = CharSet.Unicode)]
internal static extern uint AddScopedPolicyIDAce(
IntPtr Acl,
uint AceRevision,
uint AceFlags,
Expand Down