Author: ion Date: Sun Jul 24 16:53:19 2011 New Revision: 52842
URL: http://svn.reactos.org/svn/reactos?rev=52842&view=rev Log: [KERNEL32]: WTSGetActiveConsoleSessionId should return SharedUserData->ActiveConsoleId instead of having its own global.
Modified: trunk/reactos/dll/win32/kernel32/client/session.c
Modified: trunk/reactos/dll/win32/kernel32/client/session.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/session.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/session.c [iso-8859-1] Sun Jul 24 16:53:19 2011 @@ -1,59 +1,45 @@ -/* $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 @@ WINAPI WTSGetActiveConsoleSessionId(VOID) { - return ActiveConsoleSessionId; + return SharedUserData->ActiveConsoleId; }
/* EOF */