[Bug 3767] Setup needs administrative privileges

Wine Bugs wine-bugs at winehq.org
Sun Nov 6 17:06:57 CST 2005


http://bugs.winehq.org/show_bug.cgi?id=3767





------- Additional Comments From postmaster at pcos.dyndns.org  2005-06-11 17:06 -------
There is no SetLastError in SetThreadToken.

/*************************************************************************
 * SetThreadToken [ADVAPI32.@]
 *
 * Assigns an 'impersonation token' to a thread so it can assume the
 * security privileges of another thread or process.  Can also remove
 * a previously assigned token.
 *
 * PARAMS
 *   thread          [O] Handle to thread to set the token for
 *   token           [I] Token to set
 *
 * RETURNS
 *  Success: TRUE. The threads access token is set to token
 *  Failure: FALSE.
 *
 * NOTES
 *  Only supported on NT or higher. On Win9X this function does nothing.
 *  See SetTokenInformation.
 */
BOOL WINAPI SetThreadToken(PHANDLE thread, HANDLE token)
{
#    return set_ntstatus( NtSetInformationThread( thread ? *thread : 
GetCurrentThread(),
#                                                 ThreadImpersonationToken, 
&token, sizeof token ));
     return true;
}

I changed it to this, will that do what you want it to do?

Thanks,

Tim

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list