VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/sddl.h@ 30705

Last change on this file since 30705 was 28475, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.43

  • Property svn:eol-style set to native
File size: 4.6 KB
Line 
1/*
2 * Copyright (C) 2003 Ulrich Czekalla for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __SDDL_H__
29#define __SDDL_H__
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35/* Versioning */
36#define SDDL_REVISION_1 1
37#define SDDL_REVISION SDDL_REVISION_1
38
39#ifndef __WINESRC__
40/* Component tags */
41#ifndef UNICODE
42# define SDDL_OWNER "O"
43# define SDDL_GROUP "G"
44# define SDDL_DACL "D"
45# define SDDL_SACL "S"
46#else
47# if defined(__GNUC__)
48# define SDDL_OWNER (const WCHAR[]){ 'O',0 }
49# define SDDL_GROUP (const WCHAR[]){ 'G',0 }
50# define SDDL_DACL (const WCHAR[]){ 'D',0 }
51# define SDDL_SACL (const WCHAR[]){ 'S',0 }
52# elif defined(_MSC_VER)
53# define SDDL_OWNER L"O"
54# define SDDL_GROUP L"G"
55# define SDDL_DACL L"D"
56# define SDDL_SACL L"S"
57# else
58 static const WCHAR SDDL_OWNER[] = { 'O',0 };
59 static const WCHAR SDDL_GROUP[] = { 'G',0 };
60 static const WCHAR SDDL_DACL[] = { 'D',0 };
61 static const WCHAR SDDL_SACL[] = { 'S',0 };
62# endif
63#endif /* UNICODE */
64
65/* Separators as characters */
66/* SDDL_SEPERATORC is not a typo, as per Microsoft's headers */
67#ifndef UNICODE
68# define SDDL_SEPERATORC ';'
69# define SDDL_DELIMINATORC ':'
70# define SDDL_ACE_BEGINC '('
71# define SDDL_ACE_ENDC ')'
72#else
73# define SDDL_SEPERATORC ((WCHAR)';')
74# define SDDL_DELIMINATORC ((WCHAR)':')
75# define SDDL_ACE_BEGINC ((WCHAR)'(')
76# define SDDL_ACE_ENDC ((WCHAR)')')
77#endif /* UNICODE */
78
79/* Separators as strings */
80/* SDDL_SEPERATOR is not a typo, as per Microsoft's headers */
81#ifndef UNICODE
82# define SDDL_SEPERATOR ";"
83# define SDDL_DELIMINATOR ":"
84# define SDDL_ACE_BEGIN "("
85# define SDDL_ACE_END ")"
86#else
87# if defined(__GNUC__)
88# define SDDL_SEPERATOR (const WCHAR[]){ ';',0 }
89# define SDDL_DELIMINATOR (const WCHAR[]){ ':',0 }
90# define SDDL_ACE_BEGIN (const WCHAR[]){ '(',0 }
91# define SDDL_ACE_END (const WCHAR[]){ ')',0 }
92# elif defined(_MSC_VER)
93# define SDDL_SEPERATOR L";"
94# define SDDL_DELIMINATOR L":"
95# define SDDL_ACE_BEGIN L"("
96# define SDDL_ACE_END L")"
97# else
98 static const WCHAR SDDL_SEPERATOR[] = { ';',0 };
99 static const WCHAR SDDL_DELIMINATOR[] = { ':',0 };
100 static const WCHAR SDDL_ACE_BEGIN[] = { '(',0 };
101 static const WCHAR SDDL_ACE_END[] = { ')',0 };
102# endif
103#endif /* UNICODE */
104#endif /* __WINESRC__ */
105
106BOOL WINAPI ConvertSidToStringSidA( PSID, LPSTR* );
107BOOL WINAPI ConvertSidToStringSidW( PSID, LPWSTR* );
108#define ConvertSidToStringSid WINELIB_NAME_AW(ConvertSidToStringSid)
109
110BOOL WINAPI ConvertStringSidToSidA( LPCSTR, PSID* );
111BOOL WINAPI ConvertStringSidToSidW( LPCWSTR, PSID* );
112#define ConvertStringSidToSid WINELIB_NAME_AW(ConvertStringSidToSid)
113
114BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorA(
115 LPCSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
116BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(
117 LPCWSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
118#define ConvertStringSecurityDescriptorToSecurityDescriptor WINELIB_NAME_AW(ConvertStringSecurityDescriptorToSecurityDescriptor)
119
120BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorA(
121 PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPSTR*, PULONG );
122BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(
123 PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPWSTR*, PULONG );
124#define ConvertSecurityDescriptorToStringSecurityDescriptor WINELIB_NAME_AW(ConvertSecurityDescriptorToStringSecurityDescriptor)
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif /* __SDDL_H__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette