- Fix code headers. No code changes.
- Rename csrcl.h to csr.h for readability purposes.
- exitros.c --> shutdown.c
svn path=/branches/ros-csrss/; revision=57618
#include "ntdllp.h"
/* CSRSS Header */
-#include <csr/csrcl.h>
+#include <csr/csr.h>
/* PSEH */
#include <pseh/pseh2.h>
#include <ndk/umfuncs.h>
/* CSRSS Header */
-#include <csrss/client.h>
-#include <csrss/csrss.h> // FIXME: data header.
+#include <csr/csr.h>
+//#include <csr/csrss.h> // FIXME: data header.
/* C Headers */
#include <ctype.h>
/*
- * PROJECT: ReactOS Native Headers
- * FILE: include/subsys/csrss/client.h
- * PURPOSE: Public Definitions for CSR Clients
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: include/reactos/subsys/csr/csr.h
+ * PURPOSE: Public definitions for CSR Clients
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
-#ifndef _CSRCL_H
-#define _CSRCL_H
+#ifndef _CSR_H
+#define _CSR_H
#include "csrmsg.h"
CsrSetPriorityClass(IN HANDLE Process,
IN OUT PULONG PriorityClass);
-#endif // _CSRCLIENT_H
+#endif // _CSR_H
/* EOF */
/*
- * PROJECT: ReactOS Native Headers
- * FILE: include/subsys/csrss/msg.h
- * PURPOSE: Public Definitions for communication
- * between CSR Clients and Servers.
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: include/reactos/subsys/csr/csrmsg.h
+ * PURPOSE: Public definitions for communication
+ * between CSR Clients and Servers
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
/*
- * PROJECT: ReactOS Native Headers
- * FILE: include/subsys/csrss/csrsrv.h
- * PURPOSE: Public Definitions for CSR Servers
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: include/reactos/subsys/csr/csrsrv.h
+ * PURPOSE: Public definitions for CSR Servers
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
#endif
*/
-#endif // _CSRSERVER_H
+#endif // _CSRSRV_H
/* EOF */
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: include/reactos/subsys/win/base.h
+ * PURPOSE: Public definitions for Base API Clients
+ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
-#ifndef __BASE_H__
-#define __BASE_H__
+#ifndef _BASE_H
+#define _BASE_H
#pragma once
NTSTATUS WINAPI BaseSetProcessCreateNotify (BASE_PROCESS_CREATE_NOTIFY_ROUTINE);
CSR_SERVER_DLL_INIT(ServerDllInitialization);
-
-
typedef struct _NLS_USER_INFO
{
WCHAR iCountry[80];
ULONG TermsrvClientTimeZoneChangeNum;
} BASE_STATIC_SERVER_DATA, *PBASE_STATIC_SERVER_DATA;
-#endif // __BASE_H__
+#endif // _BASE_H
/* EOF */
-
-#ifndef __BASEMSG_H__
-#define __BASEMSG_H__
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: include/reactos/subsys/win/basemsg.h
+ * PURPOSE: Public definitions for communication
+ * between Base API Clients and Servers
+ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
+
+#ifndef _BASEMSG_H
+#define _BASEMSG_H
#pragma once
PCSR_CAPTURE_BUFFER CsrCaptureData;
CSR_API_NUMBER ApiNumber;
- ULONG Status;
+ ULONG Status; // ReturnValue; // NTSTATUS Status
ULONG Reserved;
union
{
} Data;
} BASE_API_MESSAGE, *PBASE_API_MESSAGE;
-#endif // __BASEMSG_H__
+#endif // _BASEMSG_H
/* EOF */
-
-#ifndef __CONMSG_H__
-#define __CONMSG_H__
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: include/reactos/subsys/win/conmsg.h
+ * PURPOSE: Public definitions for communication
+ * between Console API Clients and Servers
+ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
+
+#ifndef _CONMSG_H
+#define _CONMSG_H
#pragma once
} Data;
} CONSOLE_API_MESSAGE, *PCONSOLE_API_MESSAGE;
-#endif // __CONMSG_H__
+#endif // _CONMSG_H
/* EOF */
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: include/reactos/subsys/win/winmsg.h
+ * PURPOSE: Public definitions for communication
+ * between User-Mode API Clients and Servers
+ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
-#ifndef __WINMSG_H__
-#define __WINMSG_H__
+#ifndef _WINMSG_H
+#define _WINMSG_H
#pragma once
// CSR_SERVER_DLL_INIT(UserServerDllInitialization);
-#endif // __WINMSG_H__
+#endif // _WINMSG_H
/* EOF */
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS/Win32 Base enviroment Subsystem Server
+ * FILE: subsystems/win/basesrv/basesrv.h
+ * PURPOSE: Main header - Definitions
+ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
#ifndef __BASESRV_H__
#define __BASESRV_H__
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS/Win32 base enviroment subsystem server
+ * PROJECT: ReactOS/Win32 Base enviroment Subsystem Server
* FILE: subsystems/win/basesrv/init.c
* PURPOSE: Initialization
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS/Win32 base enviroment subsystem server
+ * PROJECT: ReactOS/Win32 Base enviroment Subsystem Server
* FILE: subsystems/win/basesrv/server.c
- * PURPOSE: Initialization
+ * PURPOSE: Server APIs
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSR Sub System
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
* FILE: subsystems/win32/csrsrv/api.c
* PURPOSE: CSR Server DLL API LPC Implementation
* "\windows\ApiPort" port process management functions
#include <windows.h>
-#include <csr/csrcl.h>
+#include <csr/csr.h>
//#include "api.h"
/*
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSR SubSystem
- * FILE: subsystems/win32/csrss/csrsrv/init.c
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: subsystems/win32/csrsrv/init.c
* PURPOSE: CSR Server DLL Initialization
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* ReactOS Portable Systems Group
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSR SubSystem
- * FILE: subsystems/win32/csrss/csrsrv/procsup.c
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: subsystems/win32/csrsrv/procsup.c
* PURPOSE: CSR Server DLL Process Management
* PROGRAMMERS: ReactOS Portable Systems Group
* Alex Ionescu (alex@relsoft.net)
*/
-
+
/* INCLUDES *******************************************************************/
#include <srv.h>
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSR SubSystem
- * FILE: subsystems/win32/csrss/csrsrv/server.c
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: subsystems/win32/csrsrv/server.c
* PURPOSE: CSR Server DLL Server Functions
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
*/
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSR SubSystem
- * FILE: subsystems/win32/csrss/csrsrv/session.c
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: subsystems/win32/csrsrv/session.c
* PURPOSE: CSR Server DLL Session Implementation
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
*/
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: subsystems/win32/csrsrv/srv.h
+ * PURPOSE: Main header - Definitions
+ * PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
+ * ReactOS Portable Systems Group
+ */
+
#ifndef _SRV_H
#define _SRV_H
#define ROUND_UP(n, align) ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
#define ROUND_DOWN(n, align) (((ULONG)n) & ~((align) - 1l))
-#endif
+#endif // _SRV_H
+
+/* EOF */
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSR SubSystem
- * FILE: subsystems/win32/csrss/csrsrv/thredsup.c
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: subsystems/win32/csrsrv/thredsup.c
* PURPOSE: CSR Server DLL Thread Management
* PROGRAMMERS: ReactOS Portable Systems Group
* Alex Ionescu (alex@relsoft.net)
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSR Sub System
- * FILE: subsystems/win32/csrss/csrsrv/wait.c
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
+ * FILE: subsystems/win32/csrsrv/wait.c
* PURPOSE: CSR Server DLL Wait Implementation
* PROGRAMMERS: Emanuele Aliberti
* Alex Ionescu (alex@relsoft.net)
/*
- * PROJECT: ReactOS Client Server Runtime SubSystem (CSRSS)
* LICENSE: BSD - See COPYING.ARM in root directory
+ * PROJECT: ReactOS Client/Server Runtime SubSystem
* FILE: subsystems/win32/csrss/csrss.c
- * PURPOSE: CSRSS Main Executable Code
+ * PURPOSE: CSRSS Process Main Executable Code
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* ReactOS Portable Systems Group
*/
/*
- * PROJECT: ReactOS CSRSS
- * LICENSE: GPL - See COPYING in the top level directory
- * FILE: subsystems/win32/csrss/api/alias.c
- * PURPOSE: CSRSS alias support functions
- * COPYRIGHT: Christoph Wittich
- * Johannes Anderwald
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/alias.c
+ * PURPOSE: Alias support functions
+ * PROGRAMMERS: Christoph Wittich
+ * Johannes Anderwald
*/
/* INCLUDES ******************************************************************/
/*
- * reactos/win32ss/user/consrv/conio.c
- *
- * Console I/O functions
- *
- * ReactOS Operating System
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/coninput.c
+ * PURPOSE: Console I/O functions
+ * PROGRAMMERS:
*/
/* INCLUDES ******************************************************************/
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
- * FILE: subsys/csrss/include/conio.h
- * PURPOSE: CSRSS internal console I/O interface
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/conio.h
+ * PURPOSE: Internal console I/O interface
+ * PROGRAMMERS:
*/
#pragma once
-// #include "api.h"
-
#define CSR_DEFAULT_CURSOR_SIZE 25
/* Object type magic numbers */
/*
- * reactos/win32ss/user/consrv/conio.c
- *
- * Console I/O functions
- *
- * ReactOS Operating System
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/conoutput.c
+ * PURPOSE: Console I/O functions
+ * PROGRAMMERS:
*/
/* INCLUDES ******************************************************************/
/*
- * reactos/win32ss/user/consrv/conio.c
- *
- * Console I/O functions
- *
- * ReactOS Operating System
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/console.c
+ * PURPOSE: Console I/O functions
+ * PROGRAMMERS:
*/
/* INCLUDES ******************************************************************/
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/consrv.h
+ * PURPOSE: Main header - Definitions
+ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
#ifndef __CONSRV_H__
#define __CONSRV_H__
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
+ * PROJECT: ReactOS Console Server DLL
* FILE: win32ss/user/consrv/guiconsole.c
* PURPOSE: Implementation of gui-mode consoles
+ * PROGRAMMERS:
*/
/* INCLUDES ******************************************************************/
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
+ * PROJECT: ReactOS Console Server DLL
* FILE: win32ss/user/consrv/guiconsole.h
- * PURPOSE: Interface to GUI consoles
+ * PURPOSE: Interface to gui-mode consoles
+ * PROGRAMMERS:
*/
-// #include "api.h"
#include "conio.h"
#define CONGUI_MIN_WIDTH 10
/*
- * reactos/subsys/csrss/api/handle.c
- *
- * CSRSS handle functions
- *
- * ReactOS Operating System
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/handle.c
+ * PURPOSE: Handle functions
+ * PROGRAMMERS:
*/
/* INCLUDES ******************************************************************/
/*
- * PROJECT: ReactOS CSRSS
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: win32ss/user/consrv/lineinput.c
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/tuiconsole.c
* PURPOSE: Console line input functions
* PROGRAMMERS: Jeffrey Morlan
*/
-/* $Id: resource.h 51293 2011-04-09 12:01:36Z mkupfer $
- *
+/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Win32 subsystem
- * FILE: subsys/csrss/win32csr/resource.h
+ * PROJECT: ReactOS Console Server DLL
+ * FILE: win32ss/user/consrv/resource.h
* PURPOSE: Resource #defines
*/
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Console Server DLL
* FILE: win32ss/user/consrv/init.c
- * PURPOSE: Initialization
+ * PURPOSE: Server APIs
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
+ * PROJECT: ReactOS Console Server DLL
* FILE: win32ss/user/consrv/tuiconsole.c
- * PURPOSE: Implementation of text-mode consoles
+ * PURPOSE: Interface to text-mode consoles
+ * PROGRAMMERS:
*/
#include "consrv.h"
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
+ * PROJECT: ReactOS Console Server DLL
* FILE: win32ss/user/consrv/tuiconsole.h
* PURPOSE: Interface to text-mode consoles
+ * PROGRAMMERS:
*/
-// #include "api.h"
#include "conio.h"
extern NTSTATUS FASTCALL TuiInitConsole(PCSRSS_CONSOLE Console);
spec2def(winsrv.dll winsrv.spec)
list(APPEND SOURCE
+ harderror.c
init.c
server.c
+ shutdown.c
winsrv.rc
${CMAKE_CURRENT_BINARY_DIR}/winsrv.def)
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
- * FILE: win32ss/user/winsrv/dllmain.c
- * PURPOSE: Initialization
+ * PROJECT: ReactOS User API Server DLL
+ * FILE: win32ss/user/winsrv/harderror.c
+ * PURPOSE: Hard errors
* PROGRAMMERS: Dmitry Philippov (shedon@mail.ru)
* Timo Kreuzer (timo.kreuzer@reactos.org)
*/
/*
- * init.c - ReactOS/Win32 Console+User Enviroment Subsystem Server - Initialization
- *
- * ReactOS Operating System
- *
- * --------------------------------------------------------------------
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * --------------------------------------------------------------------
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS User API Server DLL
+ * FILE: win32ss/user/winsrv/init.c
+ * PURPOSE: Initialization
+ * PROGRAMMERS: Dmitry Philippov (shedon@mail.ru)
+ * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
#include "winsrv.h"
-/* $Id: resource.h 51293 2011-04-09 12:01:36Z mkupfer $
- *
+/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Win32 subsystem
- * FILE: subsys/csrss/win32csr/resource.h
+ * PROJECT: ReactOS User API Server DLL
+ * FILE: win32ss/user/winsrv/resource.h
* PURPOSE: Resource #defines
*/
/*
- * server.c - ReactOS/Win32 Console+User Enviroment Subsystem Server - Initialization
- *
- * ReactOS Operating System
- *
- * --------------------------------------------------------------------
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * --------------------------------------------------------------------
- *
- * PROGRAMMER: Eric Kohl
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS User API Server DLL
+ * FILE: win32ss/user/winsrv/server.c
+ * PURPOSE: Server APIs
+ * PROGRAMMERS: Eric Kohl
+ * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
/* INCLUDES ******************************************************************/
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS CSRSS subsystem
- * FILE: win32ss/user/winsrv/exitros.c
+ * PROJECT: ReactOS User API Server DLL
+ * FILE: win32ss/user/winsrv/shutdown.c
* PURPOSE: Logout/shutdown
+ * PROGRAMMERS:
*/
/* INCLUDES ******************************************************************/
return CsrEnumProcesses(EnumProc, Context);
}
-CSR_API(CsrRegisterLogonProcess)
+CSR_API(SrvRegisterLogonProcess)
{
if (ApiMessage->Data.RegisterLogonProcessRequest.Register)
{
return Status;
}
-CSR_API(CsrExitReactos)
+CSR_API(SrvExitWindowsEx)
{
if (0 == (ApiMessage->Data.ExitReactosRequest.Flags & EWX_INTERNAL_FLAG))
{
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS User API Server DLL
+ * FILE: win32ss/user/winsrv/winsrv.h
+ * PURPOSE: Main header - Definitions
+ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
+
#pragma once
/* PSDK/NDK Headers */