advapi32: Get the token type in ImpersonateLoggedOnUser.

This commit is contained in:
James Hawkins 2006-07-05 19:55:02 -07:00 committed by Alexandre Julliard
parent ce58c3589c
commit 409c6dc7b0
1 changed files with 5 additions and 2 deletions

View File

@ -1675,13 +1675,16 @@ ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
*/
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken)
{
DWORD size;
NTSTATUS Status;
HANDLE ImpersonationToken;
TOKEN_TYPE Type = TokenImpersonation;
TOKEN_TYPE Type;
FIXME( "(%p)\n", hToken );
/* FIXME: get token type */
if (!GetTokenInformation( hToken, TokenType, &Type,
sizeof(TOKEN_TYPE), &size ))
return FALSE;
if (Type == TokenPrimary)
{