source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/sddl.h@ 1194

Last change on this file since 1194 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 5.9 KB
Line 
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef __SDDL_H__
7#define __SDDL_H__
8
9#include <_mingw_unicode.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define SDDL_REVISION_1 1
16#define SDDL_REVISION SDDL_REVISION_1
17
18#define SDDL_OWNER TEXT("O")
19#define SDDL_GROUP TEXT("G")
20#define SDDL_DACL TEXT("D")
21#define SDDL_SACL TEXT("S")
22
23#define SDDL_PROTECTED TEXT("P")
24#define SDDL_AUTO_INHERIT_REQ TEXT("AR")
25#define SDDL_AUTO_INHERITED TEXT("AI")
26#define SDDL_NULL_ACL TEXT("NO_ACCESS_CONTROL")
27
28#define SDDL_ACCESS_ALLOWED TEXT("A")
29#define SDDL_ACCESS_DENIED TEXT("D")
30#define SDDL_OBJECT_ACCESS_ALLOWED TEXT("OA")
31#define SDDL_OBJECT_ACCESS_DENIED TEXT("OD")
32#define SDDL_AUDIT TEXT("AU")
33#define SDDL_ALARM TEXT("AL")
34#define SDDL_OBJECT_AUDIT TEXT("OU")
35#define SDDL_OBJECT_ALARM TEXT("OL")
36#define SDDL_MANDATORY_LABEL TEXT("ML")
37#define SDDL_CALLBACK_ACCESS_ALLOWED TEXT("XA")
38#define SDDL_CALLBACK_ACCESS_DENIED TEXT("XD")
39#define SDDL_RESOURCE_ATTRIBUTE TEXT("RA")
40#define SDDL_SCOPED_POLICY_ID TEXT("SP")
41#define SDDL_CALLBACK_AUDIT TEXT("XU")
42#define SDDL_CALLBACK_OBJECT_ACCESS_ALLOWED TEXT("ZA")
43
44#define SDDL_CONTAINER_INHERIT TEXT("CI")
45#define SDDL_OBJECT_INHERIT TEXT("OI")
46#define SDDL_NO_PROPAGATE TEXT("NP")
47#define SDDL_INHERIT_ONLY TEXT("IO")
48#define SDDL_INHERITED TEXT("ID")
49#define SDDL_AUDIT_SUCCESS TEXT("SA")
50#define SDDL_AUDIT_FAILURE TEXT("FA")
51
52#define SDDL_READ_PROPERTY TEXT("RP")
53#define SDDL_WRITE_PROPERTY TEXT("WP")
54#define SDDL_CREATE_CHILD TEXT("CC")
55#define SDDL_DELETE_CHILD TEXT("DC")
56#define SDDL_LIST_CHILDREN TEXT("LC")
57#define SDDL_SELF_WRITE TEXT("SW")
58#define SDDL_LIST_OBJECT TEXT("LO")
59#define SDDL_DELETE_TREE TEXT("DT")
60#define SDDL_CONTROL_ACCESS TEXT("CR")
61#define SDDL_READ_CONTROL TEXT("RC")
62#define SDDL_WRITE_DAC TEXT("WD")
63#define SDDL_WRITE_OWNER TEXT("WO")
64#define SDDL_STANDARD_DELETE TEXT("SD")
65#define SDDL_GENERIC_ALL TEXT("GA")
66#define SDDL_GENERIC_READ TEXT("GR")
67#define SDDL_GENERIC_WRITE TEXT("GW")
68#define SDDL_GENERIC_EXECUTE TEXT("GX")
69#define SDDL_FILE_ALL TEXT("FA")
70#define SDDL_FILE_READ TEXT("FR")
71#define SDDL_FILE_WRITE TEXT("FW")
72#define SDDL_FILE_EXECUTE TEXT("FX")
73#define SDDL_KEY_ALL TEXT("KA")
74#define SDDL_KEY_READ TEXT("KR")
75#define SDDL_KEY_WRITE TEXT("KW")
76#define SDDL_KEY_EXECUTE TEXT("KX")
77
78#define SDDL_ALIAS_SIZE 2
79
80#define SDDL_DOMAIN_ADMINISTRATORS TEXT("DA")
81#define SDDL_DOMAIN_GUESTS TEXT("DG")
82#define SDDL_DOMAIN_USERS TEXT("DU")
83#define SDDL_ENTERPRISE_DOMAIN_CONTROLLERS TEXT("ED")
84#define SDDL_DOMAIN_DOMAIN_CONTROLLERS TEXT("DD")
85#define SDDL_DOMAIN_COMPUTERS TEXT("DC")
86#define SDDL_BUILTIN_ADMINISTRATORS TEXT("BA")
87#define SDDL_BUILTIN_GUESTS TEXT("BG")
88#define SDDL_BUILTIN_USERS TEXT("BU")
89#define SDDL_LOCAL_ADMIN TEXT("LA")
90#define SDDL_LOCAL_GUEST TEXT("LG")
91#define SDDL_ACCOUNT_OPERATORS TEXT("AO")
92#define SDDL_BACKUP_OPERATORS TEXT("BO")
93#define SDDL_PRINTER_OPERATORS TEXT("PO")
94#define SDDL_SERVER_OPERATORS TEXT("SO")
95#define SDDL_AUTHENTICATED_USERS TEXT("AU")
96#define SDDL_PERSONAL_SELF TEXT("PS")
97#define SDDL_CREATOR_OWNER TEXT("CO")
98#define SDDL_CREATOR_GROUP TEXT("CG")
99#define SDDL_LOCAL_SYSTEM TEXT("SY")
100#define SDDL_POWER_USERS TEXT("PU")
101#define SDDL_EVERYONE TEXT("WD")
102#define SDDL_REPLICATOR TEXT("RE")
103#define SDDL_INTERACTIVE TEXT("IU")
104#define SDDL_NETWORK TEXT("NU")
105#define SDDL_SERVICE TEXT("SU")
106#define SDDL_RESTRICTED_CODE TEXT("RC")
107#define SDDL_ANONYMOUS TEXT("AN")
108#define SDDL_SCHEMA_ADMINISTRATORS TEXT("SA")
109#define SDDL_CERT_SERV_ADMINISTRATORS TEXT("CA")
110#define SDDL_RAS_SERVERS TEXT("RS")
111#define SDDL_ENTERPRISE_ADMINS TEXT("EA")
112#define SDDL_GROUP_POLICY_ADMINS TEXT("PA")
113#define SDDL_ALIAS_PREW2KCOMPACC TEXT("RU")
114#define SDDL_LOCAL_SERVICE TEXT("LS")
115#define SDDL_NETWORK_SERVICE TEXT("NS")
116#define SDDL_REMOTE_DESKTOP TEXT("RD")
117#define SDDL_NETWORK_CONFIGURATION_OPS TEXT("NO")
118#define SDDL_PERFMON_USERS TEXT("MU")
119#define SDDL_PERFLOG_USERS TEXT("LU")
120
121#define SDDL_SEPERATORC TEXT(';')
122#define SDDL_DELIMINATORC TEXT(':')
123#define SDDL_ACE_BEGINC TEXT('(')
124#define SDDL_ACE_ENDC TEXT(')')
125
126#define SDDL_SEPERATOR TEXT(";")
127#define SDDL_DELIMINATOR TEXT(":")
128#define SDDL_ACE_BEGIN TEXT("(")
129#define SDDL_ACE_END TEXT(")")
130
131#define ConvertSidToStringSid __MINGW_NAME_AW(ConvertSidToStringSid)
132#define ConvertStringSidToSid __MINGW_NAME_AW(ConvertStringSidToSid)
133#define ConvertStringSecurityDescriptorToSecurityDescriptor __MINGW_NAME_AW(ConvertStringSecurityDescriptorToSecurityDescriptor)
134#define ConvertSecurityDescriptorToStringSecurityDescriptor __MINGW_NAME_AW(ConvertSecurityDescriptorToStringSecurityDescriptor)
135
136 WINADVAPI WINBOOL WINAPI ConvertSidToStringSidA(PSID Sid,LPSTR *StringSid);
137 WINADVAPI WINBOOL WINAPI ConvertSidToStringSidW(PSID Sid,LPWSTR *StringSid);
138 WINADVAPI WINBOOL WINAPI ConvertStringSidToSidA(LPCSTR StringSid,PSID *Sid);
139 WINADVAPI WINBOOL WINAPI ConvertStringSidToSidW(LPCWSTR StringSid,PSID *Sid);
140 WINADVAPI WINBOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorA(LPCSTR StringSecurityDescriptor,DWORD StringSDRevision,PSECURITY_DESCRIPTOR *SecurityDescriptor,PULONG SecurityDescriptorSize);
141 WINADVAPI WINBOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(LPCWSTR StringSecurityDescriptor,DWORD StringSDRevision,PSECURITY_DESCRIPTOR *SecurityDescriptor,PULONG SecurityDescriptorSize);
142 WINADVAPI WINBOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorA(PSECURITY_DESCRIPTOR SecurityDescriptor,DWORD RequestedStringSDRevision,SECURITY_INFORMATION SecurityInformation,LPSTR *StringSecurityDescriptor,PULONG StringSecurityDescriptorLen);
143 WINADVAPI WINBOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(PSECURITY_DESCRIPTOR SecurityDescriptor,DWORD RequestedStringSDRevision,SECURITY_INFORMATION SecurityInformation,LPWSTR *StringSecurityDescriptor,PULONG StringSecurityDescriptorLen);
144
145#ifdef __cplusplus
146}
147#endif
148#endif
Note: See TracBrowser for help on using the repository browser.