VirtualBox

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

Last change on this file since 19982 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • 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#ifndef __SDDL_H__
28#define __SDDL_H__
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/* Versioning */
35#define SDDL_REVISION_1 1
36#define SDDL_REVISION SDDL_REVISION_1
37
38#ifndef __WINESRC__
39/* Component tags */
40#ifndef UNICODE
41# define SDDL_OWNER "O"
42# define SDDL_GROUP "G"
43# define SDDL_DACL "D"
44# define SDDL_SACL "S"
45#else
46# if defined(__GNUC__)
47# define SDDL_OWNER (const WCHAR[]){ 'O',0 }
48# define SDDL_GROUP (const WCHAR[]){ 'G',0 }
49# define SDDL_DACL (const WCHAR[]){ 'D',0 }
50# define SDDL_SACL (const WCHAR[]){ 'S',0 }
51# elif defined(_MSC_VER)
52# define SDDL_OWNER L"O"
53# define SDDL_GROUP L"G"
54# define SDDL_DACL L"D"
55# define SDDL_SACL L"S"
56# else
57 static const WCHAR SDDL_OWNER[] = { 'O',0 };
58 static const WCHAR SDDL_GROUP[] = { 'G',0 };
59 static const WCHAR SDDL_DACL[] = { 'D',0 };
60 static const WCHAR SDDL_SACL[] = { 'S',0 };
61# endif
62#endif /* UNICODE */
63
64/* Separators as characters */
65/* SDDL_SEPERATORC is not a typo, as per Microsoft's headers */
66#ifndef UNICODE
67# define SDDL_SEPERATORC ';'
68# define SDDL_DELIMINATORC ':'
69# define SDDL_ACE_BEGINC '('
70# define SDDL_ACE_ENDC ')'
71#else
72# define SDDL_SEPERATORC ((WCHAR)';')
73# define SDDL_DELIMINATORC ((WCHAR)':')
74# define SDDL_ACE_BEGINC ((WCHAR)'(')
75# define SDDL_ACE_ENDC ((WCHAR)')')
76#endif /* UNICODE */
77
78/* Separators as strings */
79/* SDDL_SEPERATOR is not a typo, as per Microsoft's headers */
80#ifndef UNICODE
81# define SDDL_SEPERATOR ";"
82# define SDDL_DELIMINATOR ":"
83# define SDDL_ACE_BEGIN "("
84# define SDDL_ACE_END ")"
85#else
86# if defined(__GNUC__)
87# define SDDL_SEPERATOR (const WCHAR[]){ ';',0 }
88# define SDDL_DELIMINATOR (const WCHAR[]){ ':',0 }
89# define SDDL_ACE_BEGIN (const WCHAR[]){ '(',0 }
90# define SDDL_ACE_END (const WCHAR[]){ ')',0 }
91# elif defined(_MSC_VER)
92# define SDDL_SEPERATOR L";"
93# define SDDL_DELIMINATOR L":"
94# define SDDL_ACE_BEGIN L"("
95# define SDDL_ACE_END L")"
96# else
97 static const WCHAR SDDL_SEPERATOR[] = { ';',0 };
98 static const WCHAR SDDL_DELIMINATOR[] = { ':',0 };
99 static const WCHAR SDDL_ACE_BEGIN[] = { '(',0 };
100 static const WCHAR SDDL_ACE_END[] = { ')',0 };
101# endif
102#endif /* UNICODE */
103#endif /* __WINESRC__ */
104
105BOOL WINAPI ConvertSidToStringSidA( PSID, LPSTR* );
106BOOL WINAPI ConvertSidToStringSidW( PSID, LPWSTR* );
107#define ConvertSidToStringSid WINELIB_NAME_AW(ConvertSidToStringSid)
108
109BOOL WINAPI ConvertStringSidToSidA( LPCSTR, PSID* );
110BOOL WINAPI ConvertStringSidToSidW( LPCWSTR, PSID* );
111#define ConvertStringSidToSid WINELIB_NAME_AW(ConvertStringSidToSid)
112
113BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorA(
114 LPCSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
115BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(
116 LPCWSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
117#define ConvertStringSecurityDescriptorToSecurityDescriptor WINELIB_NAME_AW(ConvertStringSecurityDescriptorToSecurityDescriptor)
118
119BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorA(
120 PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPSTR*, PULONG );
121BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(
122 PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPWSTR*, PULONG );
123#define ConvertSecurityDescriptorToStringSecurityDescriptor WINELIB_NAME_AW(ConvertSecurityDescriptorToStringSecurityDescriptor)
124
125#ifdef __cplusplus
126}
127#endif
128
129#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