mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
Stubplement WTSQueryUserToken.
Patch by Olaf Siejka. svn path=/trunk/; revision=45969
This commit is contained in:
parent
8eca3e0dcd
commit
8cc8a06a88
2 changed files with 31 additions and 0 deletions
|
@ -487,6 +487,36 @@ BOOL WINAPI WTSQuerySessionInformationW(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/************************************************************
|
||||||
|
* WTSQueryUserToken (WTSAPI32.@)
|
||||||
|
*
|
||||||
|
* Obtains the primary access token of the logged-on user specified by the session ID.
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* SessionId [in] -- RDP session identifier
|
||||||
|
* phToken [out] -- pointer to the token handle for the logged-on user
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* RETURNS
|
||||||
|
* - On success - pointer to the primary token of the user
|
||||||
|
* - On failure - zero
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTES
|
||||||
|
* - token handle should be closed after use with CloseHandle
|
||||||
|
* - on Failure, extended error information is available via GetLastError
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
BOOL WINAPI WTSQueryUserToken(
|
||||||
|
ULONG SessionId,
|
||||||
|
PHANDLE phToken)
|
||||||
|
{
|
||||||
|
*phToken = (HANDLE)0;
|
||||||
|
SetLastError(ERROR_NO_TOKEN);
|
||||||
|
FIXME("Stub %d\n", SessionId);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* WTSWaitSystemEvent (WTSAPI32.@)
|
* WTSWaitSystemEvent (WTSAPI32.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
@ stdcall WTSQuerySessionInformationW(long long long ptr ptr)
|
@ stdcall WTSQuerySessionInformationW(long long long ptr ptr)
|
||||||
@ stub WTSQueryUserConfigA
|
@ stub WTSQueryUserConfigA
|
||||||
@ stub WTSQueryUserConfigW
|
@ stub WTSQueryUserConfigW
|
||||||
|
@ stdcall WTSQueryUserToken(long ptr)
|
||||||
@ stdcall WTSRegisterSessionNotification(long long)
|
@ stdcall WTSRegisterSessionNotification(long long)
|
||||||
@ stub WTSSendMessageA
|
@ stub WTSSendMessageA
|
||||||
@ stub WTSSendMessageW
|
@ stub WTSSendMessageW
|
||||||
|
|
Loading…
Reference in a new issue