ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

sddl.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2003 Ulrich Czekalla for CodeWeavers
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017  */
00018 
00019 #ifndef __SDDL_H__
00020 #define __SDDL_H__
00021 
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 /*
00028  * SDDL Version information
00029  */
00030 #define SDDL_REVISION_1     1
00031 #define SDDL_REVISION       SDDL_REVISION_1
00032 
00033 /*
00034  * SDDL Component tags
00035  */
00036 #define SDDL_OWNER                          TEXT("O")
00037 #define SDDL_GROUP                          TEXT("G")
00038 #define SDDL_DACL                           TEXT("D")
00039 #define SDDL_SACL                           TEXT("S")
00040 
00041 /*
00042  * SDDL Security descriptor controls
00043  */
00044 #define SDDL_PROTECTED                      TEXT("P")
00045 #define SDDL_AUTO_INHERIT_REQ               TEXT("AR")
00046 #define SDDL_AUTO_INHERITED                 TEXT("AI")
00047 
00048 /*
00049  * SDDL Rights
00050  */
00051 #define SDDL_READ_PROPERTY                  TEXT("RP")
00052 #define SDDL_WRITE_PROPERTY                 TEXT("WP")
00053 #define SDDL_CREATE_CHILD                   TEXT("CC")
00054 #define SDDL_DELETE_CHILD                   TEXT("DC")
00055 #define SDDL_LIST_CHILDREN                  TEXT("LC")
00056 #define SDDL_SELF_WRITE                     TEXT("SW")
00057 #define SDDL_LIST_OBJECT                    TEXT("LO")
00058 #define SDDL_DELETE_TREE                    TEXT("DT")
00059 #define SDDL_CONTROL_ACCESS                 TEXT("CR")
00060 #define SDDL_READ_CONTROL                   TEXT("RC")
00061 #define SDDL_WRITE_DAC                      TEXT("WD")
00062 #define SDDL_WRITE_OWNER                    TEXT("WO")
00063 #define SDDL_STANDARD_DELETE                TEXT("SD")
00064 #define SDDL_GENERIC_ALL                    TEXT("GA")
00065 #define SDDL_GENERIC_READ                   TEXT("GR")
00066 #define SDDL_GENERIC_WRITE                  TEXT("GW")
00067 #define SDDL_GENERIC_EXECUTE                TEXT("GX")
00068 #define SDDL_FILE_ALL                       TEXT("FA")
00069 #define SDDL_FILE_READ                      TEXT("FR")
00070 #define SDDL_FILE_WRITE                     TEXT("FW")
00071 #define SDDL_FILE_EXECUTE                   TEXT("FX")
00072 #define SDDL_KEY_ALL                        TEXT("KA")
00073 #define SDDL_KEY_READ                       TEXT("KR")
00074 #define SDDL_KEY_WRITE                      TEXT("KW")
00075 #define SDDL_KEY_EXECUTE                    TEXT("KX")
00076 
00077 #define SDDL_ALIAS_SIZE                     2
00078 
00079 /*
00080  * SDDL User aliases
00081  */
00082 #define SDDL_DOMAIN_ADMINISTRATORS          TEXT("DA")
00083 #define SDDL_DOMAIN_GUESTS                  TEXT("DG")
00084 #define SDDL_DOMAIN_USERS                   TEXT("DU")
00085 #define SDDL_ENTERPRISE_DOMAIN_CONTROLLERS  TEXT("ED")
00086 #define SDDL_DOMAIN_DOMAIN_CONTROLLERS      TEXT("DD")
00087 #define SDDL_DOMAIN_COMPUTERS               TEXT("DC")
00088 #define SDDL_BUILTIN_ADMINISTRATORS         TEXT("BA")
00089 #define SDDL_BUILTIN_GUESTS                 TEXT("BG")
00090 #define SDDL_BUILTIN_USERS                  TEXT("BU")
00091 #define SDDL_LOCAL_ADMIN                    TEXT("LA")
00092 #define SDDL_LOCAL_GUEST                    TEXT("LG")
00093 #define SDDL_ACCOUNT_OPERATORS              TEXT("AO")
00094 #define SDDL_BACKUP_OPERATORS               TEXT("BO")
00095 #define SDDL_PRINTER_OPERATORS              TEXT("PO")
00096 #define SDDL_SERVER_OPERATORS               TEXT("SO")
00097 #define SDDL_AUTHENTICATED_USERS            TEXT("AU")
00098 #define SDDL_PERSONAL_SELF                  TEXT("PS")
00099 #define SDDL_CREATOR_OWNER                  TEXT("CO")
00100 #define SDDL_CREATOR_GROUP                  TEXT("CG")
00101 #define SDDL_LOCAL_SYSTEM                   TEXT("SY")
00102 #define SDDL_POWER_USERS                    TEXT("PU")
00103 #define SDDL_EVERYONE                       TEXT("WD")
00104 #define SDDL_REPLICATOR                     TEXT("RE")
00105 #define SDDL_INTERACTIVE                    TEXT("IU")
00106 #define SDDL_NETWORK                        TEXT("NU")
00107 #define SDDL_SERVICE                        TEXT("SU")
00108 #define SDDL_RESTRICTED_CODE                TEXT("RC")
00109 #define SDDL_ANONYMOUS                      TEXT("AN")
00110 #define SDDL_SCHEMA_ADMINISTRATORS          TEXT("SA")
00111 #define SDDL_CERT_SERV_ADMINISTRATORS       TEXT("CA")
00112 #define SDDL_RAS_SERVERS                    TEXT("RS")
00113 #define SDDL_ENTERPRISE_ADMINS              TEXT("EA")
00114 #define SDDL_GROUP_POLICY_ADMINS            TEXT("PA")
00115 #define SDDL_ALIAS_PREW2KCOMPACC            TEXT("RU")
00116 #define SDDL_LOCAL_SERVICE                  TEXT("LS")
00117 #define SDDL_NETWORK_SERVICE                TEXT("NS")
00118 #define SDDL_REMOTE_DESKTOP                 TEXT("RD")
00119 #define SDDL_NETWORK_CONFIGURATION_OPS      TEXT("NO")
00120 #define SDDL_PERFMON_USERS                  TEXT("MU")
00121 #define SDDL_PERFLOG_USERS                  TEXT("LU")
00122 
00123 /*
00124  * SDDL Separators - character version
00125  */
00126 #define SDDL_SEPERATORC                     TEXT(';')
00127 #define SDDL_DELIMINATORC                   TEXT(':')
00128 #define SDDL_ACE_BEGINC                     TEXT('(')
00129 #define SDDL_ACE_ENDC                       TEXT(')')
00130 
00131 /*
00132  * SDDL Separators - string version
00133  */
00134 #define SDDL_SEPERATOR                     TEXT(";")
00135 #define SDDL_DELIMINATOR                   TEXT(":")
00136 #define SDDL_ACE_BEGIN                     TEXT("(")
00137 #define SDDL_ACE_END                       TEXT(")")
00138 
00139 BOOL WINAPI ConvertSidToStringSidA( PSID, LPSTR* );
00140 BOOL WINAPI ConvertSidToStringSidW( PSID, LPWSTR* );
00141 BOOL WINAPI ConvertStringSidToSidA( LPCSTR, PSID* );
00142 BOOL WINAPI ConvertStringSidToSidW( LPCWSTR, PSID* );
00143 BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorA(
00144     LPCSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
00145 BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(
00146     LPCWSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
00147 BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorA(
00148     PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPSTR*, PULONG );
00149 BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(
00150     PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPWSTR*, PULONG );
00151 
00152 #ifdef UNICODE
00153 #define ConvertSidToStringSid ConvertSidToStringSidW
00154 #define ConvertStringSidToSid ConvertStringSidToSidW
00155 #define ConvertStringSecurityDescriptorToSecurityDescriptor \
00156     ConvertStringSecurityDescriptorToSecurityDescriptorW
00157 #define ConvertSecurityDescriptorToStringSecurityDescriptor \
00158     ConvertSecurityDescriptorToStringSecurityDescriptorW
00159 #else /* UNICODE */
00160 #define ConvertSidToStringSid ConvertSidToStringSidA
00161 #define ConvertStringSidToSid ConvertStringSidToSidA
00162 #define ConvertStringSecurityDescriptorToSecurityDescriptor \
00163     ConvertStringSecurityDescriptorToSecurityDescriptorA
00164 #define ConvertSecurityDescriptorToStringSecurityDescriptor \
00165     ConvertSecurityDescriptorToStringSecurityDescriptorA
00166 #endif /* UNICODE */
00167 
00168 #ifdef __cplusplus
00169 }
00170 #endif
00171 
00172 #endif  /* __SDDL_H__ */

Generated on Fri May 25 2012 04:30:48 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.