1 // SecurityDescriptor.h: interface for the CSecurityDescriptor class.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(SECURITYDESCRIPTOR_H__71D0A7E6_8A00_11D3_9103_204C4F4F5020__INCLUDED_)
6 #define SECURITYDESCRIPTOR_H__71D0A7E6_8A00_11D3_9103_204C4F4F5020__INCLUDED_
9 PSID pSid
, // binary Sid
10 LPTSTR TextualSid
, // buffer for Textual representation of Sid
11 LPDWORD lpdwBufferLen
// required/provided TextualSid buffersize
14 const TCHAR
* GetSidTypeName(SID_NAME_USE Use
);
16 class CSecurityDescriptor
19 void GetCurrentACE_AccessMask(DWORD
& dwMask
);
20 PSID
GetCurrentACE_SID();
28 ACEntryType
GetDACLEntry(DWORD nIndex
);
29 ACEntryType
GetSACLEntry(DWORD nIndex
, BOOL
& blnFailedAccess
, BOOL
& blnSeccessfulAccess
);
30 DWORD
GetDACLEntriesCount();
31 DWORD
GetSACLEntriesCount();
36 BOOL
DescriptorContainsDACL();
37 BOOL
DescriptorContainsSACL();
38 DWORD
BeginDACLInteration();
39 DWORD
BeginSACLInteration();
40 void AssociateDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor
);
41 CSecurityDescriptor();
42 virtual ~CSecurityDescriptor();
44 PSECURITY_DESCRIPTOR m_pSecurityDescriptor
;
45 BOOL m_blnDACLPresent
;
46 BOOL m_blnDACLDefaulted
;
48 BOOL m_blnSACLPresent
;
49 BOOL m_blnSACLDefaulted
;
51 ACE_HEADER
*m_pCurrentACEHeader
;
54 #endif // !defined(SECURITYDESCRIPTOR_H__71D0A7E6_8A00_11D3_9103_204C4F4F5020__INCLUDED_)