added stubs for AccessCheckByTypeAndAuditAlarmA/W, AccessCheckByTypeResultListAndAuditAlarmA/W, AccessCheckByTypeResultListAndAuditAlarmByHandleA/W, GetAuditedPermissionsFromAclA and GetEffectiveRightsFromAclA

svn path=/trunk/; revision=18654
This commit is contained in:
Thomas Bluemel 2005-10-21 13:45:48 +00:00
parent baa9fed721
commit fcc17d749e
3 changed files with 212 additions and 19 deletions

View file

@ -15,13 +15,13 @@ AccessCheck@32
AccessCheckAndAuditAlarmA@44 AccessCheckAndAuditAlarmA@44
AccessCheckAndAuditAlarmW@44 AccessCheckAndAuditAlarmW@44
;AccessCheckByType ;AccessCheckByType
;AccessCheckByTypeAndAuditAlarmA@64 AccessCheckByTypeAndAuditAlarmA@64
;AccessCheckByTypeAndAuditAlarmW@64 AccessCheckByTypeAndAuditAlarmW@64
;AccessCheckByTypeResultList@44 ;AccessCheckByTypeResultList@44
;AccessCheckByTypeResultListAndAuditAlarmA@64 AccessCheckByTypeResultListAndAuditAlarmA@64
;AccessCheckByTypeResultListAndAuditAlarmByHandleA@68 AccessCheckByTypeResultListAndAuditAlarmByHandleA@68
;AccessCheckByTypeResultListAndAuditAlarmByHandleW@68 AccessCheckByTypeResultListAndAuditAlarmByHandleW@68
;AccessCheckByTypeResultListAndAuditAlarmW@64 AccessCheckByTypeResultListAndAuditAlarmW@64
AddAccessAllowedAce@16 AddAccessAllowedAce@16
AddAccessAllowedAceEx@20 AddAccessAllowedAceEx@20
AddAccessAllowedObjectAce@28 AddAccessAllowedObjectAce@28
@ -236,11 +236,11 @@ FreeSid@4
;GetAccessPermissionsForObjectW ;GetAccessPermissionsForObjectW
GetAce@12 GetAce@12
GetAclInformation@16 GetAclInformation@16
;GetAuditedPermissionsFromAclA@16 GetAuditedPermissionsFromAclA@16
GetAuditedPermissionsFromAclW@16 GetAuditedPermissionsFromAclW@16
GetCurrentHwProfileA@4 GetCurrentHwProfileA@4
GetCurrentHwProfileW@4 GetCurrentHwProfileW@4
;GetEffectiveRightsFromAclA@12 GetEffectiveRightsFromAclA@12
GetEffectiveRightsFromAclW@12 GetEffectiveRightsFromAclW@12
;GetEventLogInformation ;GetEventLogInformation
GetExplicitEntriesFromAclA@12=ADVAPI32.GetExplicitEntriesFromAclW GetExplicitEntriesFromAclA@12=ADVAPI32.GetExplicitEntriesFromAclW

View file

@ -692,16 +692,15 @@ GetExplicitEntriesFromAclW(
return ErrorCode; return ErrorCode;
} }
/* /*
* @unimplemented * @unimplemented
*/ */
DWORD DWORD
STDCALL STDCALL
GetEffectiveRightsFromAclW( GetEffectiveRightsFromAclW(IN PACL pacl,
PACL pacl, IN PTRUSTEE_W pTrustee,
PTRUSTEE_W ptrustee_w, OUT PACCESS_MASK pAccessRights)
PACCESS_MASK paccess_mask
)
{ {
DPRINT1("%s() not implemented!\n", __FUNCTION__); DPRINT1("%s() not implemented!\n", __FUNCTION__);
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
@ -713,12 +712,39 @@ GetEffectiveRightsFromAclW(
*/ */
DWORD DWORD
STDCALL STDCALL
GetAuditedPermissionsFromAclW( GetEffectiveRightsFromAclA(IN PACL pacl,
PACL pacl, IN PTRUSTEE_A pTrustee,
PTRUSTEE_W ptrustee_w, OUT PACCESS_MASK pAccessRights)
PACCESS_MASK paccess_mask, {
PACCESS_MASK paccess_mask2 DPRINT1("%s() not implemented!\n", __FUNCTION__);
) return ERROR_CALL_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
DWORD
STDCALL
GetAuditedPermissionsFromAclW(IN PACL pacl,
IN PTRUSTEE_W pTrustee,
OUT PACCESS_MASK pSuccessfulAuditedRights,
OUT PACCESS_MASK pFailedAuditRights)
{
DPRINT1("%s() not implemented!\n", __FUNCTION__);
return ERROR_CALL_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
DWORD
STDCALL
GetAuditedPermissionsFromAclA(IN PACL pacl,
IN PTRUSTEE_A pTrustee,
OUT PACCESS_MASK pSuccessfulAuditedRights,
OUT PACCESS_MASK pFailedAuditRights)
{ {
DPRINT1("%s() not implemented!\n", __FUNCTION__); DPRINT1("%s() not implemented!\n", __FUNCTION__);
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;

View file

@ -13,6 +13,8 @@
#include <advapi32.h> #include <advapi32.h>
#define NDEBUG
#include <debug.h>
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/
@ -505,4 +507,169 @@ PrivilegedServiceAuditAlarmW (LPCWSTR SubsystemName,
return TRUE; return TRUE;
} }
/*
* @unimplemented
*/
BOOL STDCALL
AccessCheckByTypeResultListAndAuditAlarmByHandleW(IN LPCWSTR SubsystemName,
IN LPVOID HandleId,
IN HANDLE ClientToken,
IN LPCWSTR ObjectTypeName,
IN LPCWSTR ObjectName,
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
IN PSID PrincipalSelfSid,
IN DWORD DesiredAccess,
IN AUDIT_EVENT_TYPE AuditType,
IN DWORD Flags,
IN POBJECT_TYPE_LIST ObjectTypeList,
IN DWORD ObjectTypeListLength,
IN PGENERIC_MAPPING GenericMapping,
IN BOOL ObjectCreation,
OUT LPDWORD GrantedAccess,
OUT LPDWORD AccessStatusList,
OUT LPBOOL pfGenerateOnClose)
{
DPRINT1("%s() not implemented!\n", __FUNCTION__);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/*
* @unimplemented
*/
BOOL STDCALL
AccessCheckByTypeResultListAndAuditAlarmByHandleA(IN LPCSTR SubsystemName,
IN LPVOID HandleId,
IN HANDLE ClientToken,
IN LPCSTR ObjectTypeName,
IN LPCSTR ObjectName,
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
IN PSID PrincipalSelfSid,
IN DWORD DesiredAccess,
IN AUDIT_EVENT_TYPE AuditType,
IN DWORD Flags,
IN POBJECT_TYPE_LIST ObjectTypeList,
IN DWORD ObjectTypeListLength,
IN PGENERIC_MAPPING GenericMapping,
IN BOOL ObjectCreation,
OUT LPDWORD GrantedAccess,
OUT LPDWORD AccessStatusList,
OUT LPBOOL pfGenerateOnClose)
{
DPRINT1("%s() not implemented!\n", __FUNCTION__);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/*
* @unimplemented
*/
BOOL STDCALL
AccessCheckByTypeResultListAndAuditAlarmW(IN LPCWSTR SubsystemName,
IN LPVOID HandleId,
IN LPCWSTR ObjectTypeName,
IN LPCWSTR ObjectName,
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
IN PSID PrincipalSelfSid,
IN DWORD DesiredAccess,
IN AUDIT_EVENT_TYPE AuditType,
IN DWORD Flags,
IN POBJECT_TYPE_LIST ObjectTypeList,
IN DWORD ObjectTypeListLength,
IN PGENERIC_MAPPING GenericMapping,
IN BOOL ObjectCreation,
OUT LPDWORD GrantedAccess,
OUT LPDWORD AccessStatusList,
OUT LPBOOL pfGenerateOnClose)
{
DPRINT1("%s() not implemented!\n", __FUNCTION__);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/*
* @unimplemented
*/
BOOL STDCALL
AccessCheckByTypeResultListAndAuditAlarmA(IN LPCSTR SubsystemName,
IN LPVOID HandleId,
IN LPCSTR ObjectTypeName,
IN LPCSTR ObjectName,
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
IN PSID PrincipalSelfSid,
IN DWORD DesiredAccess,
IN AUDIT_EVENT_TYPE AuditType,
IN DWORD Flags,
IN POBJECT_TYPE_LIST ObjectTypeList,
IN DWORD ObjectTypeListLength,
IN PGENERIC_MAPPING GenericMapping,
IN BOOL ObjectCreation,
OUT LPDWORD GrantedAccess,
OUT LPDWORD AccessStatusList,
OUT LPBOOL pfGenerateOnClose)
{
DPRINT1("%s() not implemented!\n", __FUNCTION__);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/*
* @unimplemented
*/
BOOL STDCALL
AccessCheckByTypeAndAuditAlarmW(IN LPCWSTR SubsystemName,
IN LPVOID HandleId,
IN LPCWSTR ObjectTypeName,
IN LPCWSTR ObjectName,
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
IN PSID PrincipalSelfSid,
IN DWORD DesiredAccess,
IN AUDIT_EVENT_TYPE AuditType,
IN DWORD Flags,
IN POBJECT_TYPE_LIST ObjectTypeList,
IN DWORD ObjectTypeListLength,
IN PGENERIC_MAPPING GenericMapping,
IN BOOL ObjectCreation,
OUT LPDWORD GrantedAccess,
OUT LPBOOL AccessStatus,
OUT LPBOOL pfGenerateOnClose)
{
DPRINT1("%s() not implemented!\n", __FUNCTION__);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/*
* @unimplemented
*/
BOOL STDCALL
AccessCheckByTypeAndAuditAlarmA(IN LPCSTR SubsystemName,
IN LPVOID HandleId,
IN LPCSTR ObjectTypeName,
IN LPCSTR ObjectName,
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
IN PSID PrincipalSelfSid,
IN DWORD DesiredAccess,
IN AUDIT_EVENT_TYPE AuditType,
IN DWORD Flags,
IN POBJECT_TYPE_LIST ObjectTypeList,
IN DWORD ObjectTypeListLength,
IN PGENERIC_MAPPING GenericMapping,
IN BOOL ObjectCreation,
OUT LPDWORD GrantedAccess,
OUT LPBOOL AccessStatus,
OUT LPBOOL pfGenerateOnClose)
{
DPRINT1("%s() not implemented!\n", __FUNCTION__);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/* EOF */ /* EOF */