diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index 15ba8b56f0..1c6c172712 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -739,3 +739,26 @@ AccessCheck(PSECURITY_DESCRIPTOR pSecurityDescriptor, HANDLE ClientToken, *AccessStatus = TRUE; return TRUE; } + +/************************************************************************* + * SetThreadToken [ADVAPI32.231] + * + * Assigns an "impersonation token" to a thread so it can assume the + * security privledges of another thread or process. Can also remove + * a previously assigned token. Only supported on NT - it's a stub + * exactly like this one on Win9X. + * + */ + +BOOL WINAPI SetThreadToken(PHANDLE thread, HANDLE token) +{ + FIXME_(advapi)("(%p, %p): stub\n", thread, token); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + + return FALSE; +} + + + + diff --git a/relay32/advapi32.spec b/relay32/advapi32.spec index 4c705be553..4124fa1dab 100644 --- a/relay32/advapi32.spec +++ b/relay32/advapi32.spec @@ -232,7 +232,7 @@ type win32 0228 stub SetServiceBits 0229 stub SetServiceObjectSecurity 0230 stdcall SetServiceStatus(long long)SetServiceStatus -0231 stub SetThreadToken +0231 stdcall SetThreadToken (ptr ptr) SetThreadToken 0232 stub SetTokenInformation 0233 stdcall StartServiceA(long long ptr) StartServiceA 0234 stdcall StartServiceCtrlDispatcherA(ptr) StartServiceCtrlDispatcherA