File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Microsoft.PowerShell.Security/security
System.Management.Automation/security Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1194,7 +1194,7 @@ private IntPtr GetSaclWithCapId(string capStr)
1194
1194
}
1195
1195
1196
1196
// Add CAPID to the SACL.
1197
- rs = NativeMethods . RtlAddScopedPolicyIDAce (
1197
+ rs = NativeMethods . AddScopedPolicyIDAce (
1198
1198
pSacl ,
1199
1199
NativeMethods . ACL_REVISION ,
1200
1200
NativeMethods . SUB_CONTAINERS_AND_OBJECTS_INHERIT ,
Original file line number Diff line number Diff line change @@ -1786,8 +1786,8 @@ internal static extern bool InitializeAcl(
1786
1786
uint nAclLength ,
1787
1787
uint dwAclRevision ) ;
1788
1788
1789
- [ DllImport ( "ntdll .dll" , CharSet = CharSet . Unicode ) ]
1790
- internal static extern uint RtlAddScopedPolicyIDAce (
1789
+ [ DllImport ( "api-ms-win-security-base-l1-2-0 .dll" , CharSet = CharSet . Unicode ) ]
1790
+ internal static extern uint AddScopedPolicyIDAce (
1791
1791
IntPtr Acl ,
1792
1792
uint AceRevision ,
1793
1793
uint AceFlags ,
You can’t perform that action at this time.
0 commit comments