ReactOS  0.4.14-dev-614-gbfd8a84
winmsg.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS User API Server DLL
4  * FILE: include/reactos/subsys/win/winmsg.h
5  * PURPOSE: Public definitions for communication
6  * between User-Mode API Clients and Servers
7  * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
8  */
9 
10 #ifndef _WINMSG_H
11 #define _WINMSG_H
12 
13 #pragma once
14 
15 #define USERSRV_SERVERDLL_INDEX 3
16 #define USERSRV_FIRST_API_NUMBER 1024
17 
18 // Windows Server 2003 table from http://j00ru.vexillium.org/csrss_list/api_list.html#Windows_2k3
19 typedef enum _USERSRV_API_NUMBER
20 {
24  UserpRegisterServicesProcess, // Not present in Win7
26  UserpGetThreadConsoleDesktop, // Not present in Win7
28  UserpRegisterLogonProcess, // Not present in Win7
31  // UserpCancelShutdown, // Added in Vista
32  // UserpConsoleHandleOperation, // Added in Win7
33  // UserpGetSetShutdownBlockReason, // Added in Vista
34 
37 
38 /* The USERCONNECT structure is defined in win32ss/include/ntuser.h */
39 #define _USERSRV_API_CONNECTINFO _USERCONNECT
40 #define USERSRV_API_CONNECTINFO USERCONNECT
41 #define PUSERSRV_API_CONNECTINFO PUSERCONNECT
42 
43 #if defined(_M_IX86)
44 C_ASSERT(sizeof(USERSRV_API_CONNECTINFO) == 0x124);
45 #endif
46 
47 
48 typedef struct _USER_EXIT_REACTOS
49 {
54 
55 typedef struct _USER_END_TASK
56 {
62 
63 typedef struct _USER_LOGON
64 {
67 
69 {
73 
75 {
78 
80 {
84 
86 {
89 
90 typedef struct _USER_API_MESSAGE
91 {
93 
98  union
99  {
107  } Data;
109 
110 // Check that a USER_API_MESSAGE can hold in a CSR_API_MESSAGE.
112 
113 #endif // _WINMSG_H
114 
115 /* EOF */
ULONG CSR_API_NUMBER
Definition: csrmsg.h:35
NTSTATUS Status
Definition: winmsg.h:96
struct _USER_LOGON USER_LOGON
BOOL Force
Definition: winmsg.h:59
PORT_MESSAGE Header
Definition: winmsg.h:92
DWORD LastError
Definition: winmsg.h:50
BOOL IsLogon
Definition: winmsg.h:65
PCSR_CAPTURE_BUFFER CsrCaptureData
Definition: winmsg.h:94
LONG NTSTATUS
Definition: precomp.h:26
USER_EXIT_REACTOS ExitReactOSRequest
Definition: winmsg.h:100
BOOL Success
Definition: winmsg.h:60
HWND WndHandle
Definition: winmsg.h:58
#define USERSRV_FIRST_API_NUMBER
Definition: winmsg.h:16
USER_GET_THREAD_CONSOLE_DESKTOP GetThreadConsoleDesktopRequest
Definition: winmsg.h:103
struct _USER_EXIT_REACTOS USER_EXIT_REACTOS
uint32_t ULONG_PTR
Definition: typedefs.h:63
struct _USER_LOGON * PUSER_LOGON
USER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest
Definition: winmsg.h:104
unsigned int BOOL
Definition: ntddk_ex.h:94
USER_LOGON LogonRequest
Definition: winmsg.h:102
#define C_ASSERT(e)
Definition: intsafe.h:79
ULONG Reserved
Definition: winmsg.h:97
struct _USER_GET_THREAD_CONSOLE_DESKTOP * PUSER_GET_THREAD_CONSOLE_DESKTOP
CSR_API_NUMBER ApiNumber
Definition: winmsg.h:95
USER_REGISTER_LOGON_PROCESS RegisterLogonProcessRequest
Definition: winmsg.h:105
#define USERSRV_API_CONNECTINFO
Definition: winmsg.h:40
USER_END_TASK EndTaskRequest
Definition: winmsg.h:101
struct _USER_REGISTER_LOGON_PROCESS * PUSER_REGISTER_LOGON_PROCESS
CHECK_API_MSG_SIZE(USER_API_MESSAGE)
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _USER_API_MESSAGE * PUSER_API_MESSAGE
union _USER_API_MESSAGE::@3414 Data
struct _USER_EXIT_REACTOS * PUSER_EXIT_REACTOS
struct _USER_CREATE_SYSTEM_THREAD USER_CREATE_SYSTEM_THREAD
struct _USER_REGISTER_LOGON_PROCESS USER_REGISTER_LOGON_PROCESS
struct _USER_END_TASK * PUSER_END_TASK
struct _USER_GET_THREAD_CONSOLE_DESKTOP USER_GET_THREAD_CONSOLE_DESKTOP
struct _USER_REGISTER_SERVICES_PROCESS USER_REGISTER_SERVICES_PROCESS
unsigned int UINT
Definition: ndis.h:50
struct _USER_END_TASK USER_END_TASK
USER_CREATE_SYSTEM_THREAD CreateSystemThreadRequest
Definition: winmsg.h:106
struct _USER_REGISTER_SERVICES_PROCESS * PUSER_REGISTER_SERVICES_PROCESS
DWORD LastError
Definition: winmsg.h:57
unsigned int ULONG
Definition: retypes.h:1
enum _USERSRV_API_NUMBER USERSRV_API_NUMBER
struct _USER_CREATE_SYSTEM_THREAD * PUSER_CREATE_SYSTEM_THREAD
enum _USERSRV_API_NUMBER * PUSERSRV_API_NUMBER
struct _USER_API_MESSAGE USER_API_MESSAGE
_USERSRV_API_NUMBER
Definition: winmsg.h:19