diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index b49c8ad11c8..7ce039beff8 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -45,6 +45,7 @@ BOOL32 WINAPI OpenThreadToken( HANDLE32 thread,DWORD desiredaccess, { FIXME(advapi,"(%08x,%08lx,%d,%p): stub!\n", thread,desiredaccess,openasself,thandle); + *thandle = 0; /* FIXME ... well, store something in there ;) */ return TRUE; } @@ -278,7 +279,25 @@ DWORD WINAPI GetSecurityDescriptorLength( SECURITY_DESCRIPTOR *pDescr) return 0; } +/*********************************************************************** + * GetSecurityDescriptorOwner (ADVAPI.56) + */ +BOOL32 WINAPI GetSecurityDescriptorOwner (SECURITY_DESCRIPTOR *pDescr,LPSID *pOwner,LPBOOL32 lpbOwnerDefaulted) +{ + FIXME(security, "(%p,%p,%p), stub\n", pDescr,pOwner,lpbOwnerDefaulted); + *lpbOwnerDefaulted = TRUE; + return 0; +} +/*********************************************************************** + * GetSecurityDescriptorGroup (ADVAPI.54) + */ +BOOL32 WINAPI GetSecurityDescriptorGroup(SECURITY_DESCRIPTOR *pDescr,LPSID *pGroup,LPBOOL32 lpbOwnerDefaulted) +{ + FIXME(security, "(%p,%p,%p), stub\n", pDescr,pGroup,lpbOwnerDefaulted); + *lpbOwnerDefaulted = TRUE; + return 0; +} /*********************************************************************** * InitializeSid (ADVAPI.74) @@ -435,3 +454,11 @@ BOOL32 WINAPI NotifyBootConfigStatus(DWORD x1) { FIXME(advapi,"(0x%08lx),stub!\n",x1); return 1; } + +/****************************************************************************** + * RevertToSelf [ADVAPI32] + */ +BOOL32 WINAPI RevertToSelf(void) { + FIXME(advapi,"(), stub\n"); + return TRUE; +} diff --git a/relay32/advapi32.spec b/relay32/advapi32.spec index ec3f7f3bef0..92e8e79e945 100644 --- a/relay32/advapi32.spec +++ b/relay32/advapi32.spec @@ -55,9 +55,9 @@ type win32 0051 stub GetPrivateObjectSecurity 0052 stub GetSecurityDescriptorControl 0053 stub GetSecurityDescriptorDacl -0054 stub GetSecurityDescriptorGroup +0054 stdcall GetSecurityDescriptorGroup(ptr ptr ptr) GetSecurityDescriptorGroup 0055 stdcall GetSecurityDescriptorLength(ptr) GetSecurityDescriptorLength -0056 stub GetSecurityDescriptorOwner +0056 stdcall GetSecurityDescriptorOwner(ptr ptr ptr) GetSecurityDescriptorOwner 0057 stub GetSecurityDescriptorSacl 0058 stub GetServiceDisplayNameA 0059 stub GetServiceDisplayNameW @@ -181,7 +181,7 @@ type win32 0177 stdcall RegisterServiceCtrlHandlerW (ptr ptr) RegisterServiceCtrlHandlerW 0178 stdcall ReportEventA (long long long long ptr long long str ptr) ReportEvent32A 0179 stdcall ReportEventW (long long long long ptr long long wstr ptr) ReportEvent32W -0180 stub RevertToSelf +0180 stdcall RevertToSelf() RevertToSelf 0181 stub SetAclInformation 0182 stdcall SetFileSecurityA(str long ptr ) SetFileSecurity32A 0183 stdcall SetFileSecurityW(wstr long ptr) SetFileSecurity32W