1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-29 12:55:59 +02:00

More ACL support

This commit is contained in:
Brian Fiete 2020-06-05 14:17:25 -07:00
parent 2b574916cc
commit bb31854f75

View file

@ -1159,6 +1159,37 @@ namespace System
ACL* pSacl
);
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern uint32 GetExplicitEntriesFromAclW(
ACL* pacl,
uint32* pcCountOfExplicitEntries,
EXPLICIT_ACCESS_W** pListOfExplicitEntries
);
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern uint32 GetEffectiveRightsFromAclW(
ACL* pacl,
TRUSTEE_W* pTrustee,
uint32* pAccessRights
);
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern IntBool LookupAccountSidW(
char16* lpSystemName,
SID* Sid,
char16* Name,
uint32* cchName,
char16* ReferencedDomainName,
uint32* cchReferencedDomainName,
int* peUse
);
[Import("advapi32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern IntBool ConvertStringSidToSidW(
char16* StringSid,
SID** Sid
);
[CLink, CallingConvention(.Stdcall)]
public static extern void LocalFree(void* ptr);