ReactOS 0.4.15-dev-5666-gc548b97
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
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)
44C_ASSERT(sizeof(USERSRV_API_CONNECTINFO) == 0x124);
45#endif
46
47
48typedef struct _USER_EXIT_REACTOS
49{
54
55typedef struct _USER_END_TASK
56{
62
63typedef struct _USER_LOGON
64{
67
69{
73
75{
78
80{
84
86{
89
90typedef struct _USER_DEVICE_EVENT_MSG {
97
98typedef struct _USER_API_MESSAGE
99{
101
106 union
107 {
118
119// Check that a USER_API_MESSAGE can hold in a CSR_API_MESSAGE.
121
122#endif // _WINMSG_H
123
124/* EOF */
LONG NTSTATUS
Definition: precomp.h:26
#define CHECK_API_MSG_SIZE(type)
Definition: csrmsg.h:148
ULONG CSR_API_NUMBER
Definition: csrmsg.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define C_ASSERT(e)
Definition: intsafe.h:73
unsigned int ULONG
Definition: retypes.h:1
unsigned int UINT
Definition: ndis.h:50
USER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest
Definition: winmsg.h:112
USER_REGISTER_LOGON_PROCESS RegisterLogonProcessRequest
Definition: winmsg.h:113
ULONG Reserved
Definition: winmsg.h:105
USER_EXIT_REACTOS ExitReactOSRequest
Definition: winmsg.h:108
PORT_MESSAGE Header
Definition: winmsg.h:100
USER_LOGON LogonRequest
Definition: winmsg.h:110
PCSR_CAPTURE_BUFFER CsrCaptureData
Definition: winmsg.h:102
USER_DEVICE_EVENT_MSG DeviceEventMsg
Definition: winmsg.h:115
NTSTATUS Status
Definition: winmsg.h:104
union _USER_API_MESSAGE::@3509 Data
USER_GET_THREAD_CONSOLE_DESKTOP GetThreadConsoleDesktopRequest
Definition: winmsg.h:111
USER_END_TASK EndTaskRequest
Definition: winmsg.h:109
USER_CREATE_SYSTEM_THREAD CreateSystemThreadRequest
Definition: winmsg.h:114
CSR_API_NUMBER ApiNumber
Definition: winmsg.h:103
ULONG_PTR Result
Definition: winmsg.h:95
BOOL Force
Definition: winmsg.h:59
DWORD LastError
Definition: winmsg.h:57
BOOL Success
Definition: winmsg.h:60
HWND WndHandle
Definition: winmsg.h:58
DWORD LastError
Definition: winmsg.h:50
BOOL IsLogon
Definition: winmsg.h:65
uint32_t ULONG_PTR
Definition: typedefs.h:65
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
struct _USER_API_MESSAGE USER_API_MESSAGE
enum _USERSRV_API_NUMBER USERSRV_API_NUMBER
_USERSRV_API_NUMBER
Definition: winmsg.h:20
@ UserpExitWindowsEx
Definition: winmsg.h:21
@ UserpMaxApiNumber
Definition: winmsg.h:35
@ UserpGetThreadConsoleDesktop
Definition: winmsg.h:26
@ UserpRecordShutdownReason
Definition: winmsg.h:30
@ UserpCreateSystemThreads
Definition: winmsg.h:29
@ UserpRegisterLogonProcess
Definition: winmsg.h:28
@ UserpLogon
Definition: winmsg.h:23
@ UserpDeviceEvent
Definition: winmsg.h:27
@ UserpActivateDebugger
Definition: winmsg.h:25
@ UserpRegisterServicesProcess
Definition: winmsg.h:24
@ UserpEndTask
Definition: winmsg.h:22
struct _USER_END_TASK * PUSER_END_TASK
struct _USER_CREATE_SYSTEM_THREAD USER_CREATE_SYSTEM_THREAD
struct _USER_LOGON * PUSER_LOGON
struct _USER_END_TASK USER_END_TASK
struct _USER_DEVICE_EVENT_MSG * PUSER_DEVICE_EVENT_MSG
struct _USER_REGISTER_SERVICES_PROCESS USER_REGISTER_SERVICES_PROCESS
struct _USER_EXIT_REACTOS * PUSER_EXIT_REACTOS
struct _USER_DEVICE_EVENT_MSG USER_DEVICE_EVENT_MSG
#define USERSRV_API_CONNECTINFO
Definition: winmsg.h:40
enum _USERSRV_API_NUMBER * PUSERSRV_API_NUMBER
struct _USER_GET_THREAD_CONSOLE_DESKTOP * PUSER_GET_THREAD_CONSOLE_DESKTOP
struct _USER_CREATE_SYSTEM_THREAD * PUSER_CREATE_SYSTEM_THREAD
struct _USER_LOGON USER_LOGON
#define USERSRV_FIRST_API_NUMBER
Definition: winmsg.h:16
struct _USER_GET_THREAD_CONSOLE_DESKTOP USER_GET_THREAD_CONSOLE_DESKTOP
struct _USER_REGISTER_LOGON_PROCESS * PUSER_REGISTER_LOGON_PROCESS
struct _USER_API_MESSAGE * PUSER_API_MESSAGE
struct _USER_REGISTER_LOGON_PROCESS USER_REGISTER_LOGON_PROCESS
struct _USER_REGISTER_SERVICES_PROCESS * PUSER_REGISTER_SERVICES_PROCESS
struct _USER_EXIT_REACTOS USER_EXIT_REACTOS