84 lines
1.1 KiB
C
84 lines
1.1 KiB
C
|
DWORD
|
||
|
CreateNewSD (
|
||
|
SECURITY_DESCRIPTOR **SD
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
MakeSDAbsolute (
|
||
|
PSECURITY_DESCRIPTOR OldSD,
|
||
|
PSECURITY_DESCRIPTOR *NewSD
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
SetNamedValueSD (
|
||
|
HKEY RootKey,
|
||
|
LPTSTR KeyName,
|
||
|
LPTSTR ValueName,
|
||
|
SECURITY_DESCRIPTOR *SD
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
GetNamedValueSD (
|
||
|
HKEY RootKey,
|
||
|
LPTSTR KeyName,
|
||
|
LPTSTR ValueName,
|
||
|
SECURITY_DESCRIPTOR **SD,
|
||
|
BOOL *NewSD
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
AddPrincipalToNamedValueSD (
|
||
|
HKEY RootKey,
|
||
|
LPTSTR KeyName,
|
||
|
LPTSTR ValueName,
|
||
|
LPTSTR Principal,
|
||
|
BOOL Permit
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
RemovePrincipalFromNamedValueSD (
|
||
|
HKEY RootKey,
|
||
|
LPTSTR KeyName,
|
||
|
LPTSTR ValueName,
|
||
|
LPTSTR Principal
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
GetCurrentUserSID (
|
||
|
PSID *Sid
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
GetPrincipalSID (
|
||
|
LPTSTR Principal,
|
||
|
PSID *Sid,
|
||
|
BOOL *pbWellKnownSID
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
CopyACL (
|
||
|
PACL OldACL,
|
||
|
PACL NewACL
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
AddAccessDeniedACEToACL (
|
||
|
PACL *Acl,
|
||
|
DWORD PermissionMask,
|
||
|
LPTSTR Principal
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
AddAccessAllowedACEToACL (
|
||
|
PACL *Acl,
|
||
|
DWORD PermissionMask,
|
||
|
LPTSTR Principal
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
RemovePrincipalFromACL (
|
||
|
PACL Acl,
|
||
|
LPTSTR Principal
|
||
|
);
|
||
|
|