From 123501fbc6d9beddc0668d3f250e3f319835c5ed Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Wed, 10 Feb 1999 06:39:51 +0000 Subject: [PATCH] Two ADVAPI32 stubs: ImpersonateSelf32 and AccessCheck32. Spelling fixes. --- dlls/advapi32/security.c | 26 ++++++++++++++++++++++---- relay32/advapi32.spec | 4 ++-- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index 6fa62a530b8..5c2a4cb49f0 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -101,8 +101,8 @@ LookupPrivilegeValue32W( LPCWSTR lpSystemName, LPCWSTR lpName, LPVOID lpLuid ) * GetFileSecurity32A [ADVAPI32.45] * * Obtains Specified information about the security of a file or directory - * The information obtained is constrained by the callers acces rights and - * priviliges + * The information obtained is constrained by the callers access rights and + * privileges */ BOOL32 WINAPI GetFileSecurity32A( LPCSTR lpFileName, @@ -118,8 +118,8 @@ GetFileSecurity32A( LPCSTR lpFileName, * GetFileSecurity32W [ADVAPI32.46] * * Obtains Specified information about the security of a file or directory - * The information obtained is constrained by the callers acces rights and - * priviliges + * The information obtained is constrained by the callers access rights and + * privileges * * PARAMS * lpFileName [] @@ -642,3 +642,21 @@ RevertToSelf( void ) FIXME(advapi,"(), stub\n"); return TRUE; } + +/****************************************************************************** + * ImpersonateSelf [ADVAPI32.71] + */ +BOOL32 WINAPI +ImpersonateSelf32(DWORD/*SECURITY_IMPERSONATION_LEVEL*/ ImpersonationLevel) +{ + FIXME(advapi, "(%08lx), stub\n", ImpersonationLevel); + return TRUE; +} + +BOOL32 WINAPI +AccessCheck32(LPSECURITY_DESCRIPTOR pSecurityDescriptor, HANDLE32 ClientToken, DWORD DesiredAccess, LPVOID/*LPGENERIC_MAPPING*/ GenericMapping, LPVOID/*LPPRIVILEGE_SET*/ PrivilegeSet, LPDWORD PrivilegeSetLength, LPDWORD GrantedAccess, LPBOOL32 AccessStatus) +{ + FIXME(advapi, "(%p, %04x, %08lx, %p, %p, %p, %p, %p), stub\n", pSecurityDescriptor, ClientToken, DesiredAccess, GenericMapping, PrivilegeSet, PrivilegeSetLength, GrantedAccess, AccessStatus); + *AccessStatus = TRUE; + return TRUE; +} diff --git a/relay32/advapi32.spec b/relay32/advapi32.spec index 0dbe83d3720..6744af3c36d 100644 --- a/relay32/advapi32.spec +++ b/relay32/advapi32.spec @@ -3,7 +3,7 @@ type win32 0000 stub AbortSystemShutdownA 0001 stub AbortSystemShutdownW -0002 stub AccessCheck +0002 stdcall AccessCheck(ptr long long ptr ptr ptr ptr ptr) AccessCheck32 0003 stub AccessCheckAndAuditAlarmA 0004 stub AccessCheckAndAuditAlarmW 0005 stub AddAccessAllowedAce @@ -72,7 +72,7 @@ type win32 0068 stdcall GetUserNameW(ptr ptr) GetUserName32W 0069 stub ImpersonateLoggedOnUser 0070 stub ImpersonateNamedPipeClient -0071 stub ImpersonateSelf +0071 stdcall ImpersonateSelf(long) ImpersonateSelf32 0072 stub InitializeAcl 0073 stdcall InitializeSecurityDescriptor(ptr long) InitializeSecurityDescriptor 0074 stdcall InitializeSid(ptr ptr long) InitializeSid