From 362cb2c05bd16da728400e5dc6b7244062e5b59f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 31 Jan 2002 20:44:02 +0000 Subject: [PATCH] Authors: Dmitry Timoshkov , Eric Kohl Implemented CheckTokenMembership and GetAce. --- dlls/advapi32/advapi32.spec | 3 ++- dlls/advapi32/security.c | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index b78399f85f..002fd087c7 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -89,7 +89,7 @@ debug_channels (advapi crypt reg) @ stdcall EqualSid(ptr ptr) EqualSid @ stub FindFirstFreeAce @ stdcall FreeSid(ptr) FreeSid -@ stub GetAce +@ stdcall GetAce(ptr long ptr) GetAce @ stub GetAclInformation @ stdcall GetFileSecurityA(str long ptr long ptr) GetFileSecurityA @ stdcall GetFileSecurityW(wstr long ptr long ptr) GetFileSecurityW @@ -323,3 +323,4 @@ debug_channels (advapi crypt reg) @ stub I_ScSetServiceBitsA @ stub EnumServiceGroupA @ stub EnumServiceGroupW +@ stdcall CheckTokenMembership(long ptr ptr) CheckTokenMembership diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index 359c9fdedb..e87c88daa1 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -90,6 +90,24 @@ AdjustTokenPrivileges( HANDLE TokenHandle, BOOL DisableAllPrivileges, CallWin32ToNt(NtAdjustPrivilegesToken(TokenHandle, DisableAllPrivileges, NewState, BufferLength, PreviousState, ReturnLength)); } +/****************************************************************************** + * CheckTokenMembership [ADVAPI32.@] + * + * PARAMS + * TokenHandle [] + * SidToCheck [] + * IsMember [] + */ +BOOL WINAPI +CheckTokenMembership( HANDLE TokenHandle, PSID SidToCheck, + PBOOL IsMember ) +{ + FIXME("(0x%08x %p %p) stub!\n", TokenHandle, SidToCheck, IsMember); + + *IsMember = TRUE; + return(TRUE); +} + /****************************************************************************** * GetTokenInformation [ADVAPI32.@] * @@ -919,3 +937,11 @@ LookupAccountNameA( FIXME("(%s,%s,%p,%p,%p,%p,%p), stub.\n",system,account,sid,cbSid,ReferencedDomainName,cbReferencedDomainName,name_use); return FALSE; } + +/****************************************************************************** + * GetAce [ADVAPI32.@] + */ +BOOL WINAPI GetAce(PACL pAcl,DWORD dwAceIndex,LPVOID *pAce ) +{ + CallWin32ToNt(RtlGetAce(pAcl, dwAceIndex, pAce)); +} -- 2.32.0.93.g670b81a890