[KERNEL32]: WTSGetActiveConsoleSessionId should return SharedUserData->ActiveConsoleId instead of having its own global.

svn path=/trunk/; revision=52842
This commit is contained in:
Alex Ionescu 2011-07-24 16:53:19 +00:00
parent 078cdde168
commit 63f96f7207

View file

@ -1,60 +1,46 @@
/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/kernel32/proc/session.c
* PURPOSE: Win32 session (TS) functions
* PROGRAMMER: Emanuele Aliberti
* UPDATE HISTORY:
* 2001-12-07 created
/*
* PROJECT: ReactOS Win32 Base API
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/win32/kernel32/client/session.c
* PURPOSE: Session Support APIs
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
*/
/* INCLUDES *******************************************************************/
#include <k32.h>
#define NDEBUG
#include <debug.h>
//DEBUG_CHANNEL(kernel32session); not actually used
DWORD ActiveConsoleSessionId = 0;
/* FUNCTIONS ******************************************************************/
/*
* @unimplemented
*/
DWORD
WINAPI
DosPathToSessionPathW(DWORD SessionID,
LPWSTR InPath,
LPWSTR *OutPath)
DosPathToSessionPathW(IN DWORD SessionID,
IN LPWSTR InPath,
OUT LPWSTR *OutPath)
{
UNIMPLEMENTED;
return 0;
}
/*
* From: ActiveVB.DE
*
* Declare Function DosPathToSessionPath _
* Lib "kernel32.dll" _
* Alias "DosPathToSessionPathA" ( _
* ByVal SessionId As Long, _
* ByVal pInPath As String, _
* ByVal ppOutPath As String ) _
* As Long
*
* @unimplemented
*/
DWORD
WINAPI
DosPathToSessionPathA(DWORD SessionId,
LPSTR InPath,
LPSTR *OutPath)
DosPathToSessionPathA(IN DWORD SessionId,
IN LPSTR InPath,
OUT LPSTR *OutPath)
{
//DosPathToSessionPathW (SessionId,InPathW,OutPathW);
UNIMPLEMENTED;
return 0;
}
/*
* @implemented
*/
@ -62,7 +48,7 @@ DWORD
WINAPI
WTSGetActiveConsoleSessionId(VOID)
{
return ActiveConsoleSessionId;
return SharedUserData->ActiveConsoleId;
}
/* EOF */