Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e19a9041
Commit
e19a9041
authored
Jul 03, 2008
by
Jon Griffiths
Committed by
Alexandre Julliard
Jul 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Avoid TEXT() in sddl component tags, hide them when building Wine.
parent
7b7cd31f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
28 deletions
+65
-28
sddl.h
include/sddl.h
+65
-28
No files found.
include/sddl.h
View file @
e19a9041
...
...
@@ -15,46 +15,83 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __SDDL_H__
#define __SDDL_H__
#ifdef __cplusplus
extern
"C"
{
#endif
/*
* SDDL Version information
*/
#define SDDL_REVISION_1 1
#define SDDL_REVISION SDDL_REVISION_1
/* Versioning */
#define SDDL_REVISION_1 1
#define SDDL_REVISION SDDL_REVISION_1
/*
* SDDL Component tags
*/
#define SDDL_OWNER TEXT("O")
#define SDDL_GROUP TEXT("G")
#define SDDL_DACL TEXT("D")
#define SDDL_SACL TEXT("S")
#ifndef __WINESRC__
/* Component tags */
#ifndef UNICODE
# define SDDL_OWNER "O"
# define SDDL_GROUP "G"
# define SDDL_DACL "D"
# define SDDL_SACL "S"
#else
# if defined(__GNUC__)
# define SDDL_OWNER (const WCHAR[]){ 'O',0 }
# define SDDL_GROUP (const WCHAR[]){ 'G',0 }
# define SDDL_DACL (const WCHAR[]){ 'D',0 }
# define SDDL_SACL (const WCHAR[]){ 'S',0 }
# elif defined(_MSC_VER)
# define SDDL_OWNER L"O"
# define SDDL_GROUP L"G"
# define SDDL_DACL L"D"
# define SDDL_SACL L"S"
# else
static
const
WCHAR
SDDL_OWNER
[]
=
{
'O'
,
0
};
static
const
WCHAR
SDDL_GROUP
[]
=
{
'G'
,
0
};
static
const
WCHAR
SDDL_DACL
[]
=
{
'D'
,
0
};
static
const
WCHAR
SDDL_SACL
[]
=
{
'S'
,
0
};
# endif
#endif
/* UNICODE */
/*
* SDDL Separators - character version
*/
/* Separators as characters */
/* SDDL_SEPERATORC is not a typo, as per Microsoft's headers */
#define SDDL_SEPERATORC TEXT(";")
#define SDDL_DELIMINATORC TEXT(":")
#define SDDL_ACE_BEGINC TEXT("(")
#define SDDL_ACE_ENDC TEXT(")")
#ifndef UNICODE
# define SDDL_SEPERATORC ';'
# define SDDL_DELIMINATORC ':'
# define SDDL_ACE_BEGINC '('
# define SDDL_ACE_ENDC ')'
#else
# define SDDL_SEPERATORC ((WCHAR)';')
# define SDDL_DELIMINATORC ((WCHAR)':')
# define SDDL_ACE_BEGINC ((WCHAR)'(')
# define SDDL_ACE_ENDC ((WCHAR)')')
#endif
/* UNICODE */
/*
* SDDL Separators - string version
*/
/* Separators as strings */
/* SDDL_SEPERATOR is not a typo, as per Microsoft's headers */
#define SDDL_SEPERATOR TEXT(";")
#define SDDL_DELIMINATOR TEXT(":")
#define SDDL_ACE_BEGIN TEXT("(")
#define SDDL_ACE_END TEXT(")")
#ifndef UNICODE
# define SDDL_SEPERATOR ";"
# define SDDL_DELIMINATOR ":"
# define SDDL_ACE_BEGIN "("
# define SDDL_ACE_END ")"
#else
# if defined(__GNUC__)
# define SDDL_SEPERATOR (const WCHAR[]){ ';',0 }
# define SDDL_DELIMINATOR (const WCHAR[]){ ':',0 }
# define SDDL_ACE_BEGIN (const WCHAR[]){ '(',0 }
# define SDDL_ACE_END (const WCHAR[]){ ')',0 }
# elif defined(_MSC_VER)
# define SDDL_SEPERATOR L";"
# define SDDL_DELIMINATOR L":"
# define SDDL_ACE_BEGIN L"("
# define SDDL_ACE_END L")"
# else
static
const
WCHAR
SDDL_SEPERATOR
[]
=
{
';'
,
0
};
static
const
WCHAR
SDDL_DELIMINATOR
[]
=
{
':'
,
0
};
static
const
WCHAR
SDDL_ACE_BEGIN
[]
=
{
'('
,
0
};
static
const
WCHAR
SDDL_ACE_END
[]
=
{
')'
,
0
};
# endif
#endif
/* UNICODE */
#endif
/* __WINESRC__ */
BOOL
WINAPI
ConvertSidToStringSidA
(
PSID
,
LPSTR
*
);
BOOL
WINAPI
ConvertSidToStringSidW
(
PSID
,
LPWSTR
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment