Windows2003-3790/admin/services/sched/inc/security.hxx
2020-09-30 16:53:55 +02:00

42 lines
1.5 KiB
C++

//+---------------------------------------------------------------------------
//
// File: security.hxx
//
// Contents:
//
// Classes:
//
// History: 26-Jun-96 MarkBl Created
//
//----------------------------------------------------------------------------
#ifndef _SECURITY_HXX_
#define _SECURITY_HXX_
typedef struct _MYACE {
ACCESS_MASK AccessMask;
UCHAR InheritFlags;
PSID pSid;
} MYACE, * PMYACE;
PACCESS_ALLOWED_ACE CreateAccessAllowedAce(
PSID pSid,
ACCESS_MASK AccessMask,
UCHAR AceFlags,
UCHAR InheritFlags,
DWORD * pStatus = NULL);
PSECURITY_DESCRIPTOR CreateSecurityDescriptor(
DWORD AceCount,
MYACE rgMyAce[],
PACCESS_ALLOWED_ACE rgAce[],
DWORD * pStatus = NULL);
void DeleteSecurityDescriptor(
PSECURITY_DESCRIPTOR pSecurityDescriptor);
DWORD EnablePrivilege(
IN PCWSTR pszPrivName,
IN BOOL bEnable,
OUT PBOOL pbWasEnabled OPTIONAL);
#endif // _SECURITY_HXX_