mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
- Start rosapps rearrange and cleanup process.
svn path=/trunk/; revision=34303
This commit is contained in:
parent
0a0a13a41c
commit
2012315e5a
1206 changed files with 81 additions and 81 deletions
57
rosapps/applications/sysutils/regexpl/SecurityDescriptor.h
Normal file
57
rosapps/applications/sysutils/regexpl/SecurityDescriptor.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
/* $Id$ */
|
||||
|
||||
// SecurityDescriptor.h: interface for the CSecurityDescriptor class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(SECURITYDESCRIPTOR_H__71D0A7E6_8A00_11D3_9103_204C4F4F5020__INCLUDED_)
|
||||
#define SECURITYDESCRIPTOR_H__71D0A7E6_8A00_11D3_9103_204C4F4F5020__INCLUDED_
|
||||
|
||||
BOOL GetTextualSid(
|
||||
PSID pSid, // binary Sid
|
||||
LPTSTR TextualSid, // buffer for Textual representation of Sid
|
||||
LPDWORD lpdwBufferLen // required/provided TextualSid buffersize
|
||||
);
|
||||
|
||||
const TCHAR * GetSidTypeName(SID_NAME_USE Use);
|
||||
|
||||
class CSecurityDescriptor
|
||||
{
|
||||
public:
|
||||
void GetCurrentACE_Flags(BYTE& bFlags);
|
||||
void GetCurrentACE_AccessMask(DWORD& dwMask);
|
||||
PSID GetCurrentACE_SID();
|
||||
enum ACEntryType
|
||||
{
|
||||
Unknown,
|
||||
AccessAlowed,
|
||||
AccessDenied,
|
||||
SystemAudit
|
||||
};
|
||||
ACEntryType GetDACLEntry(DWORD nIndex);
|
||||
ACEntryType GetSACLEntry(DWORD nIndex, BOOL& blnFailedAccess, BOOL& blnSeccessfulAccess);
|
||||
DWORD GetDACLEntriesCount();
|
||||
DWORD GetSACLEntriesCount();
|
||||
BOOL HasValidDACL();
|
||||
BOOL HasNULLDACL();
|
||||
BOOL HasValidSACL();
|
||||
BOOL HasNULLSACL();
|
||||
BOOL DescriptorContainsDACL();
|
||||
BOOL DescriptorContainsSACL();
|
||||
DWORD BeginDACLInteration();
|
||||
DWORD BeginSACLInteration();
|
||||
void AssociateDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor);
|
||||
CSecurityDescriptor();
|
||||
virtual ~CSecurityDescriptor();
|
||||
private:
|
||||
PSECURITY_DESCRIPTOR m_pSecurityDescriptor;
|
||||
BOOL m_blnDACLPresent;
|
||||
BOOL m_blnDACLDefaulted;
|
||||
PACL m_pDACL;
|
||||
BOOL m_blnSACLPresent;
|
||||
BOOL m_blnSACLDefaulted;
|
||||
PACL m_pSACL;
|
||||
ACE_HEADER *m_pCurrentACEHeader;
|
||||
};
|
||||
|
||||
#endif // !defined(SECURITYDESCRIPTOR_H__71D0A7E6_8A00_11D3_9103_204C4F4F5020__INCLUDED_)
|
Loading…
Add table
Add a link
Reference in a new issue