mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 02:23:38 +00:00
107 lines
3.8 KiB
C
107 lines
3.8 KiB
C
/*
|
|
* Copyright (C) 2003 Ulrich Czekalla for CodeWeavers
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* 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
|
|
|
|
/* Versioning */
|
|
#define SDDL_REVISION_1 1
|
|
#define SDDL_REVISION SDDL_REVISION_1
|
|
|
|
#ifndef WINE_NO_UNICODE_MACROS
|
|
/* Component tags */
|
|
#ifndef UNICODE
|
|
# define SDDL_OWNER "O"
|
|
# define SDDL_GROUP "G"
|
|
# define SDDL_DACL "D"
|
|
# define SDDL_SACL "S"
|
|
#else
|
|
# if defined(_MSC_VER) || defined(__MINGW32__)
|
|
# 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 */
|
|
|
|
/* Separators as characters */
|
|
/* SDDL_SEPERATORC is not a typo, as per Microsoft's headers */
|
|
#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 */
|
|
|
|
/* Separators as strings */
|
|
/* SDDL_SEPERATOR is not a typo, as per Microsoft's headers */
|
|
#ifndef UNICODE
|
|
# define SDDL_SEPERATOR ";"
|
|
# define SDDL_DELIMINATOR ":"
|
|
# define SDDL_ACE_BEGIN "("
|
|
# define SDDL_ACE_END ")"
|
|
#else
|
|
# if defined(_MSC_VER) || defined(__MINGW32__)
|
|
# 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 /* WINE_NO_UNICODE_MACROS */
|
|
|
|
WINADVAPI BOOL WINAPI ConvertSidToStringSidA( PSID, LPSTR* );
|
|
WINADVAPI BOOL WINAPI ConvertSidToStringSidW( PSID, LPWSTR* );
|
|
#define ConvertSidToStringSid WINELIB_NAME_AW(ConvertSidToStringSid)
|
|
|
|
WINADVAPI BOOL WINAPI ConvertStringSidToSidA( LPCSTR, PSID* );
|
|
WINADVAPI BOOL WINAPI ConvertStringSidToSidW( LPCWSTR, PSID* );
|
|
#define ConvertStringSidToSid WINELIB_NAME_AW(ConvertStringSidToSid)
|
|
|
|
WINADVAPI BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorA(LPCSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
|
|
WINADVAPI BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(LPCWSTR, DWORD, PSECURITY_DESCRIPTOR*, PULONG );
|
|
#define ConvertStringSecurityDescriptorToSecurityDescriptor WINELIB_NAME_AW(ConvertStringSecurityDescriptorToSecurityDescriptor)
|
|
|
|
WINADVAPI BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorA(PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPSTR*, PULONG );
|
|
WINADVAPI BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPWSTR*, PULONG );
|
|
#define ConvertSecurityDescriptorToStringSecurityDescriptor WINELIB_NAME_AW(ConvertSecurityDescriptorToStringSecurityDescriptor)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SDDL_H__ */
|