Added ImpersonateLoggedOnUser stub.

This commit is contained in:
Huw D M Davies 2002-04-03 19:53:31 +00:00 committed by Alexandre Julliard
parent 766957317a
commit c48f3b07ae
3 changed files with 14 additions and 4 deletions

View File

@ -117,7 +117,7 @@ debug_channels (advapi crypt reg)
@ stdcall GetTokenInformation(long long ptr long ptr) GetTokenInformation
@ stdcall GetUserNameA(ptr ptr) GetUserNameA
@ stdcall GetUserNameW(ptr ptr) GetUserNameW
@ stub ImpersonateLoggedOnUser
@ stdcall ImpersonateLoggedOnUser(long) ImpersonateLoggedOnUser
@ stub ImpersonateNamedPipeClient
@ stdcall ImpersonateSelf(long) ImpersonateSelf
@ stdcall InitializeAcl(ptr long long) InitializeAcl

View File

@ -100,7 +100,7 @@ OpenThreadToken( HANDLE ThreadHandle, DWORD DesiredAccess,
*/
BOOL WINAPI
AdjustTokenPrivileges( HANDLE TokenHandle, BOOL DisableAllPrivileges,
LPVOID NewState, DWORD BufferLength,
LPVOID NewState, DWORD BufferLength,
LPVOID PreviousState, LPDWORD ReturnLength )
{
CallWin32ToNt(NtAdjustPrivilegesToken(TokenHandle, DisableAllPrivileges, NewState, BufferLength, PreviousState, ReturnLength));
@ -136,7 +136,7 @@ CheckTokenMembership( HANDLE TokenHandle, PSID SidToCheck,
*
*/
BOOL WINAPI
GetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
GetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
LPVOID tokeninfo, DWORD tokeninfolength, LPDWORD retlen )
{
CallWin32ToNt (NtQueryInformationToken( token, tokeninfoclass, tokeninfo, tokeninfolength, retlen));
@ -147,7 +147,7 @@ GetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
*
* 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
* a previously assigned token. Only supported on NT - it's a stub
* exactly like this one on Win9X.
*
*/
@ -894,6 +894,15 @@ ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
return RtlImpersonateSelf(ImpersonationLevel);
}
/******************************************************************************
* ImpersonateLoggedOnUser [ADVAPI32.@]
*/
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken)
{
FIXME("(%08x):stub returning FALSE\n", hToken);
return FALSE;
}
/******************************************************************************
* AccessCheck [ADVAPI32.@]
*

View File

@ -1303,6 +1303,7 @@ BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
BOOL WINAPI IsTextUnicode(CONST LPVOID lpBuffer, int cb, LPINT lpi);
BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
BOOL WINAPI IsValidSid(PSID);
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE);
BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
BOOL WINAPI IsProcessorFeaturePresent(DWORD);
BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);