Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.1 KiB

//+---------------------------------------------------------------------------
//
// File: security.hxx
//
// Contents:
//
// Classes:
//
// History: 26-Jun-96 MarkBl Created
//
//----------------------------------------------------------------------------
#ifndef _SECURITY_HXX_
#define _SECURITY_HXX_
typedef struct _ACE_DESC
{
ACCESS_MASK AccessMask;
BYTE Type;
BYTE Flags;
PSID pSid;
}
ACE_DESC, *PACE_DESC;
DWORD
CreateSecurityDescriptor(
OUT PSECURITY_DESCRIPTOR* ppSecurityDescriptor,
IN DWORD dwDaclAceCount,
IN CONST ACE_DESC* pDaclAces,
IN DWORD dwSaclAceCount,
IN CONST ACE_DESC* pSaclAces
);
void
DeleteSecurityDescriptor(
IN PSECURITY_DESCRIPTOR pSecurityDescriptor
);
DWORD
EnablePrivilege(
IN PCWSTR pszPrivName,
IN BOOL bEnable,
OUT PBOOL pbWasEnabled OPTIONAL
);
#endif // _SECURITY_HXX_