1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS Win32k subsystem 4 * PURPOSE: Interface between Win32k and USERSRV 5 * FILE: win32ss/user/ntuser/csr.h 6 * PROGRAMER: Hermes Belusca-Maito (hermes.belusca@sfr.fr), based on 7 * the original code by Ge van Geldorp (ge@gse.nl) and by 8 * the CSR code in NTDLL. 9 */ 10 11 #pragma once 12 13 /* NDK Headers */ 14 #include <ndk/lpcfuncs.h> 15 16 /* CSRSS Header */ 17 #include <csr/csr.h> 18 #include <win/winmsg.h> 19 20 extern PEPROCESS gpepCSRSS; 21 extern PVOID CsrApiPort; 22 23 VOID InitCsrProcess(VOID /*IN PEPROCESS CsrProcess*/); 24 VOID ResetCsrProcess(VOID); 25 NTSTATUS InitCsrApiPort(IN HANDLE CsrPortHandle); 26 VOID ResetCsrApiPort(VOID); 27 28 NTSTATUS 29 NTAPI 30 CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, 31 IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, 32 IN CSR_API_NUMBER ApiNumber, 33 IN ULONG DataLength); 34 35 #define ST_RIT (1<<0) 36 #define ST_DESKTOP_THREAD (1<<1) 37 #define ST_GHOST_THREAD (1<<2) 38 39 DWORD UserSystemThreadProc(BOOL bRemoteProcess); 40 BOOL UserCreateSystemThread(DWORD Type); 41 42 /* EOF */ 43