Added ImpersonateLoggedOnUser stub.
This commit is contained in:
parent
766957317a
commit
c48f3b07ae
|
@ -117,7 +117,7 @@ debug_channels (advapi crypt reg)
|
||||||
@ stdcall GetTokenInformation(long long ptr long ptr) GetTokenInformation
|
@ stdcall GetTokenInformation(long long ptr long ptr) GetTokenInformation
|
||||||
@ stdcall GetUserNameA(ptr ptr) GetUserNameA
|
@ stdcall GetUserNameA(ptr ptr) GetUserNameA
|
||||||
@ stdcall GetUserNameW(ptr ptr) GetUserNameW
|
@ stdcall GetUserNameW(ptr ptr) GetUserNameW
|
||||||
@ stub ImpersonateLoggedOnUser
|
@ stdcall ImpersonateLoggedOnUser(long) ImpersonateLoggedOnUser
|
||||||
@ stub ImpersonateNamedPipeClient
|
@ stub ImpersonateNamedPipeClient
|
||||||
@ stdcall ImpersonateSelf(long) ImpersonateSelf
|
@ stdcall ImpersonateSelf(long) ImpersonateSelf
|
||||||
@ stdcall InitializeAcl(ptr long long) InitializeAcl
|
@ stdcall InitializeAcl(ptr long long) InitializeAcl
|
||||||
|
|
|
@ -100,7 +100,7 @@ OpenThreadToken( HANDLE ThreadHandle, DWORD DesiredAccess,
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
AdjustTokenPrivileges( HANDLE TokenHandle, BOOL DisableAllPrivileges,
|
AdjustTokenPrivileges( HANDLE TokenHandle, BOOL DisableAllPrivileges,
|
||||||
LPVOID NewState, DWORD BufferLength,
|
LPVOID NewState, DWORD BufferLength,
|
||||||
LPVOID PreviousState, LPDWORD ReturnLength )
|
LPVOID PreviousState, LPDWORD ReturnLength )
|
||||||
{
|
{
|
||||||
CallWin32ToNt(NtAdjustPrivilegesToken(TokenHandle, DisableAllPrivileges, NewState, BufferLength, PreviousState, ReturnLength));
|
CallWin32ToNt(NtAdjustPrivilegesToken(TokenHandle, DisableAllPrivileges, NewState, BufferLength, PreviousState, ReturnLength));
|
||||||
|
@ -136,7 +136,7 @@ CheckTokenMembership( HANDLE TokenHandle, PSID SidToCheck,
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
GetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
|
GetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
|
||||||
LPVOID tokeninfo, DWORD tokeninfolength, LPDWORD retlen )
|
LPVOID tokeninfo, DWORD tokeninfolength, LPDWORD retlen )
|
||||||
{
|
{
|
||||||
CallWin32ToNt (NtQueryInformationToken( token, tokeninfoclass, tokeninfo, tokeninfolength, 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
|
* Assigns an "impersonation token" to a thread so it can assume the
|
||||||
* security privledges of another thread or process. Can also remove
|
* 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.
|
* exactly like this one on Win9X.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -894,6 +894,15 @@ ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
|
||||||
return RtlImpersonateSelf(ImpersonationLevel);
|
return RtlImpersonateSelf(ImpersonationLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* ImpersonateLoggedOnUser [ADVAPI32.@]
|
||||||
|
*/
|
||||||
|
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken)
|
||||||
|
{
|
||||||
|
FIXME("(%08x):stub returning FALSE\n", hToken);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* AccessCheck [ADVAPI32.@]
|
* AccessCheck [ADVAPI32.@]
|
||||||
*
|
*
|
||||||
|
|
|
@ -1303,6 +1303,7 @@ BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
|
||||||
BOOL WINAPI IsTextUnicode(CONST LPVOID lpBuffer, int cb, LPINT lpi);
|
BOOL WINAPI IsTextUnicode(CONST LPVOID lpBuffer, int cb, LPINT lpi);
|
||||||
BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
|
BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
|
||||||
BOOL WINAPI IsValidSid(PSID);
|
BOOL WINAPI IsValidSid(PSID);
|
||||||
|
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE);
|
||||||
BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
|
BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
|
||||||
BOOL WINAPI IsProcessorFeaturePresent(DWORD);
|
BOOL WINAPI IsProcessorFeaturePresent(DWORD);
|
||||||
BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
|
BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
|
||||||
|
|
Loading…
Reference in New Issue