af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2004 Mike McCormack
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync/*
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync */
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef __WINE_ACLAPI_H
af062818b47340eef15700d2f0211576ba3506eevboxsync#define __WINE_ACLAPI_H
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef __WINESRC__
af062818b47340eef15700d2f0211576ba3506eevboxsync# include <windows.h>
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync#include <accctrl.h>
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifdef __cplusplus
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsynctypedef void (*FN_PROGRESS)(LPWSTR,DWORD,PPROG_INVOKE_SETTING,PVOID,BOOL);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetExplicitEntriesFromAclA( PACL, PULONG, PEXPLICIT_ACCESS_A* );
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetExplicitEntriesFromAclW( PACL, PULONG, PEXPLICIT_ACCESS_W* );
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetExplicitEntriesFromAcl WINELIB_NAME_AW(GetExplicitEntriesFromAcl)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetSecurityInfo( HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID*, PSID*, PACL*, PACL*, PSECURITY_DESCRIPTOR*);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetSecurityInfoExA(HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, LPCSTR, LPCSTR, PACTRL_ACCESSA*, PACTRL_AUDITA*, LPSTR*, LPSTR*);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetSecurityInfoExW(HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, LPCWSTR, LPCWSTR, PACTRL_ACCESSW*, PACTRL_AUDITW*, LPWSTR*, LPWSTR*);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetSecurityInfoEx WINELIB_NAME_AW(GetSecurityInfoEx)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetNamedSecurityInfoA(LPSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID*, PSID*, PACL*, PACL*, PSECURITY_DESCRIPTOR*);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetNamedSecurityInfoW(LPWSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID*, PSID*, PACL*, PACL*, PSECURITY_DESCRIPTOR*);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetNamedSecurityInfo WINELIB_NAME_AW(GetNamedSecurityInfo)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI SetNamedSecurityInfoA(LPSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI SetNamedSecurityInfoW(LPWSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define SetNamedSecurityInfo WINELIB_NAME_AW(SetNamedSecurityInfo)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI SetEntriesInAclA( ULONG, PEXPLICIT_ACCESSA, PACL, PACL*);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI SetEntriesInAclW( ULONG, PEXPLICIT_ACCESSW, PACL, PACL*);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define SetEntriesInAcl WINELIB_NAME_AW(SetEntriesInAcl)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI SetSecurityInfo(HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI TRUSTEE_FORM WINAPI GetTrusteeFormA( PTRUSTEEA );
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI TRUSTEE_FORM WINAPI GetTrusteeFormW( PTRUSTEEW );
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetTrusteeForm WINELIB_NAME_AW(GetTrusteeForm)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI LPSTR WINAPI GetTrusteeNameA( PTRUSTEEA );
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI LPWSTR WINAPI GetTrusteeNameW( PTRUSTEEW );
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetTrusteeName WINELIB_NAME_AW(GetTrusteeName)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI TRUSTEE_TYPE WINAPI GetTrusteeTypeA( PTRUSTEEA );
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI TRUSTEE_TYPE WINAPI GetTrusteeTypeW( PTRUSTEEW );
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetTrusteeType WINELIB_NAME_AW(GetTrusteeType)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI BuildSecurityDescriptorA( PTRUSTEEA, PTRUSTEEA, ULONG, PEXPLICIT_ACCESS_A, ULONG, PEXPLICIT_ACCESS_A, PSECURITY_DESCRIPTOR, PULONG, PSECURITY_DESCRIPTOR* );
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI BuildSecurityDescriptorW( PTRUSTEEW, PTRUSTEEW, ULONG, PEXPLICIT_ACCESS_W, ULONG, PEXPLICIT_ACCESS_W, PSECURITY_DESCRIPTOR, PULONG, PSECURITY_DESCRIPTOR* );
af062818b47340eef15700d2f0211576ba3506eevboxsync#define BuildSecurityDescriptor WINELIB_NAME_AW(BuildSecurityDescriptor)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithNameA( PTRUSTEEA, LPSTR );
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithNameW( PTRUSTEEW, LPWSTR );
af062818b47340eef15700d2f0211576ba3506eevboxsync#define BuildTrusteeWithName WINELIB_NAME_AW(BuildTrusteeWithName)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithObjectsAndNameA(PTRUSTEEA, POBJECTS_AND_NAME_A, SE_OBJECT_TYPE, LPSTR, LPSTR, LPSTR);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithObjectsAndNameW(PTRUSTEEW, POBJECTS_AND_NAME_W, SE_OBJECT_TYPE, LPWSTR, LPWSTR, LPWSTR);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define BuildTrusteeWithObjectsAndName WINELIB_NAME_AW(BuildTrusteeWithObjectsAndName)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithObjectsAndSidA(PTRUSTEEA, POBJECTS_AND_SID, GUID*, GUID*, PSID);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithObjectsAndSidW(PTRUSTEEW, POBJECTS_AND_SID, GUID*, GUID*, PSID);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define BuildTrusteeWithObjectsAndSid WINELIB_NAME_AW(BuildTrusteeWithObjectsAndSid)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildExplicitAccessWithNameA(PEXPLICIT_ACCESSA, LPSTR, DWORD, ACCESS_MODE, DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildExplicitAccessWithNameW(PEXPLICIT_ACCESSW, LPWSTR, DWORD, ACCESS_MODE, DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define BuildExplicitAccessWithName WINELIB_NAME_AW(BuildExplicitAccessWithName)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithSidA(PTRUSTEEA pTrustee, PSID pSid);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI void WINAPI BuildTrusteeWithSidW(PTRUSTEEW pTrustee, PSID pSid);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define BuildTrusteeWithSid WINELIB_NAME_AW(BuildTrusteeWithSid)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetEffectiveRightsFromAclA(PACL,PTRUSTEE_A,PACCESS_MASK);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINADVAPI DWORD WINAPI GetEffectiveRightsFromAclW(PACL,PTRUSTEE_W,PACCESS_MASK);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetEffectiveRightsFromAcl WINELIB_NAME_AW(GetEffectiveRightsFromAcl)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifdef __cplusplus
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_ACLAPI_H */