forked from reactos/reactos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSR][NTDLL] Move the CSR subsystem into its own "csr" sub-directory. (…
…reactos#4802) Move CSRSS, CSRSRV there, as well as CSR client calls from NTDLL into a "CSRLIB" library.
- Loading branch information
Showing
27 changed files
with
94 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
add_subdirectory(csr) | ||
add_subdirectory(mvdm) | ||
add_subdirectory(win) | ||
add_subdirectory(win32) |
1 change: 1 addition & 0 deletions
1
subsystems/win32/CMakeLists.txt → subsystems/csr/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
add_subdirectory(csrlib) | ||
add_subdirectory(csrsrv) | ||
add_subdirectory(csrss) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
add_definitions(-D_NTSYSTEM_) | ||
|
||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys/csr) | ||
|
||
list(APPEND SOURCE | ||
api.c | ||
capture.c | ||
connect.c) | ||
|
||
add_library(csrlib ${SOURCE}) | ||
add_pch(csrlib csrlib.h SOURCE) | ||
add_dependencies(csrlib psdk) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
/* | ||
* COPYRIGHT: See COPYING in the top level directory | ||
* PROJECT: ReactOS kernel | ||
* FILE: dll/ntdll/csr/api.c | ||
* PURPOSE: CSR APIs exported through NTDLL | ||
* PROGRAMMER: Alex Ionescu ([email protected]) | ||
* PROJECT: ReactOS Client/Server Runtime SubSystem | ||
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) | ||
* PURPOSE: CSR Client Library - API LPC Implementation | ||
* COPYRIGHT: Copyright 2005-2012 Alex Ionescu <[email protected]> | ||
* Copyright 2012-2022 Hermès Bélusca-Maïto <[email protected]> | ||
*/ | ||
|
||
/* INCLUDES *******************************************************************/ | ||
|
||
#include <ntdll.h> | ||
#include "csrlib.h" | ||
|
||
#define NTOS_MODE_USER | ||
#include <ndk/psfuncs.h> | ||
|
||
#define NDEBUG | ||
#include <debug.h> | ||
|
||
/* GLOBALS ********************************************************************/ | ||
|
||
extern HANDLE CsrApiPort; | ||
|
||
/* FUNCTIONS ******************************************************************/ | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
/* | ||
* COPYRIGHT: See COPYING in the top level directory | ||
* PROJECT: ReactOS kernel | ||
* FILE: dll/ntdll/csr/capture.c | ||
* PURPOSE: Routines for probing and capturing CSR API Messages | ||
* PROGRAMMERS: Alex Ionescu ([email protected]) | ||
* Hermes Belusca-Maito ([email protected]) | ||
* PROJECT: ReactOS Client/Server Runtime SubSystem | ||
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) | ||
* PURPOSE: CSR Client Library - CSR API Messages probing and capturing | ||
* COPYRIGHT: Copyright 2005 Alex Ionescu <[email protected]> | ||
* Copyright 2012-2022 Hermès Bélusca-Maïto <[email protected]> | ||
*/ | ||
|
||
/* INCLUDES *******************************************************************/ | ||
|
||
#include <ntdll.h> | ||
#include "csrlib.h" | ||
|
||
#define NDEBUG | ||
#include <debug.h> | ||
|
||
/* GLOBALS ********************************************************************/ | ||
|
||
extern HANDLE CsrPortHeap; | ||
|
||
/* FUNCTIONS ******************************************************************/ | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
/* | ||
* COPYRIGHT: See COPYING in the top level directory | ||
* PROJECT: ReactOS kernel | ||
* FILE: dll/ntdll/csr/connect.c | ||
* PURPOSE: Routines for connecting and calling CSR | ||
* PROGRAMMER: Alex Ionescu ([email protected]) | ||
* PROJECT: ReactOS Client/Server Runtime SubSystem | ||
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) | ||
* PURPOSE: CSR Client Library - CSR connection and calling | ||
* COPYRIGHT: Copyright 2005-2013 Alex Ionescu <[email protected]> | ||
* Copyright 2012-2022 Hermès Bélusca-Maïto <[email protected]> | ||
*/ | ||
|
||
/* INCLUDES *******************************************************************/ | ||
|
||
#include <ntdll.h> | ||
#include "csrlib.h" | ||
|
||
#define NTOS_MODE_USER | ||
#include <ndk/ldrfuncs.h> | ||
#include <ndk/lpcfuncs.h> | ||
#include <csr/csrsrv.h> | ||
#include <ndk/mmfuncs.h> | ||
#include <ndk/obfuncs.h> | ||
#include <ndk/umfuncs.h> | ||
|
||
#include <csrsrv.h> // For CSR_CSRSS_SECTION_SIZE | ||
|
||
#define NDEBUG | ||
#include <debug.h> | ||
|
@@ -30,8 +36,6 @@ typedef NTSTATUS | |
|
||
PCSR_SERVER_API_ROUTINE CsrServerApiRoutine; | ||
|
||
#define UNICODE_PATH_SEP L"\\" | ||
|
||
/* FUNCTIONS ******************************************************************/ | ||
|
||
NTSTATUS | ||
|
@@ -80,8 +84,8 @@ CsrpConnectToServer(IN PWSTR ObjectDirectory) | |
} | ||
|
||
/* Create the name */ | ||
RtlAppendUnicodeToString(&PortName, ObjectDirectory ); | ||
RtlAppendUnicodeToString(&PortName, UNICODE_PATH_SEP); | ||
RtlAppendUnicodeToString(&PortName, ObjectDirectory); | ||
RtlAppendUnicodeToString(&PortName, L"\\"); | ||
RtlAppendUnicodeToString(&PortName, CSR_PORT_NAME); | ||
|
||
/* Create a section for the port memory */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@ stdcall CsrAllocateCaptureBuffer(long long) | ||
@ stdcall CsrAllocateMessagePointer(ptr long ptr) | ||
@ stdcall CsrCaptureMessageBuffer(ptr ptr long ptr) | ||
@ stdcall CsrCaptureMessageMultiUnicodeStringsInPlace(ptr long ptr) | ||
@ stdcall CsrCaptureMessageString(ptr str long long ptr) | ||
@ stdcall CsrCaptureTimeout(long ptr) | ||
@ stdcall CsrClientCallServer(ptr ptr long long) | ||
@ stdcall CsrClientConnectToServer(str long ptr ptr ptr) | ||
@ stdcall CsrFreeCaptureBuffer(ptr) | ||
@ stdcall CsrGetProcessId() | ||
@ stdcall CsrIdentifyAlertableThread() | ||
@ stdcall -version=0x502 CsrNewThread() | ||
@ stdcall -version=0x502 CsrProbeForRead(ptr long long) | ||
@ stdcall -version=0x502 CsrProbeForWrite(ptr long long) | ||
@ stdcall CsrSetPriorityClass(ptr ptr) | ||
@ stdcall -stub -version=0x600+ CsrVerifyRegion(ptr long) | ||
@ stdcall -stub -version=0x600+ RtlRegisterThreadWithCsrss() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* PROJECT: ReactOS Client/Server Runtime SubSystem | ||
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) | ||
* PURPOSE: CSR Client Library - Main Header | ||
* COPYRIGHT: Copyright 2022 Hermès Bélusca-Maïto <[email protected]> | ||
*/ | ||
|
||
#ifndef _CSRLIB_H_ | ||
#define _CSRLIB_H_ | ||
|
||
/* INCLUDES ******************************************************************/ | ||
|
||
/* PSDK/NDK Headers */ | ||
#define WIN32_NO_STATUS | ||
//#include <windef.h> | ||
#define NTOS_MODE_USER | ||
#include <ndk/rtlfuncs.h> | ||
|
||
/* CSRSS Headers */ | ||
#include <csr.h> | ||
|
||
/* GLOBALS ********************************************************************/ | ||
|
||
extern HANDLE CsrApiPort; | ||
extern HANDLE CsrPortHeap; | ||
|
||
#endif /* _CSRLIB_H_ */ | ||
|
||
/* EOF */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.