mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 21:05:59 +02:00
More ACL support
This commit is contained in:
parent
2b574916cc
commit
bb31854f75
1 changed files with 31 additions and 0 deletions
|
@ -1159,6 +1159,37 @@ namespace System
|
||||||
ACL* pSacl
|
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)]
|
[CLink, CallingConvention(.Stdcall)]
|
||||||
public static extern void LocalFree(void* ptr);
|
public static extern void LocalFree(void* ptr);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue