Added stub for SetThreadToken(), required by Office 2000.

This commit is contained in:
Ian Schmidt 1999-07-10 10:17:27 +00:00 committed by Alexandre Julliard
parent f4b61df94f
commit ec6aab5169
2 changed files with 24 additions and 1 deletions

View File

@ -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;
}

View File

@ -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