ReactOS 0.4.16-dev-290-g89a3b8f
csrmsg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _CSR_API_CONNECTINFO
 
struct  _CSR_CLIENT_CONNECT
 
struct  _CSR_CAPTURE_BUFFER
 
struct  _CSR_API_MESSAGE
 

Macros

#define CSR_PORT_NAME   L"ApiPort"
 
#define CSRSRV_SERVERDLL_INDEX   0
 
#define CSRSRV_FIRST_API_NUMBER   0
 
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)    (CSR_API_NUMBER)(((ServerId) << 16) | (ApiId))
 
#define CSR_API_NUMBER_TO_SERVER_ID(ApiNumber)    (ULONG)((ULONG)(ApiNumber) >> 16)
 
#define CSR_API_NUMBER_TO_API_ID(ApiNumber)    (ULONG)((ULONG)(ApiNumber) & 0xFFFF)
 
#define CHECK_API_MSG_SIZE(type)   C_ASSERT(sizeof(type) <= sizeof(CSR_API_MESSAGE))
 

Typedefs

typedef enum _CSRSRV_API_NUMBER CSRSRV_API_NUMBER
 
typedef enum _CSRSRV_API_NUMBERPCSRSRV_API_NUMBER
 
typedef ULONG CSR_API_NUMBER
 
typedef struct _CSR_API_CONNECTINFO CSR_API_CONNECTINFO
 
typedef struct _CSR_API_CONNECTINFOPCSR_API_CONNECTINFO
 
typedef struct _CSR_CLIENT_CONNECT CSR_CLIENT_CONNECT
 
typedef struct _CSR_CLIENT_CONNECTPCSR_CLIENT_CONNECT
 
typedef struct _CSR_CAPTURE_BUFFER CSR_CAPTURE_BUFFER
 
typedef struct _CSR_CAPTURE_BUFFERPCSR_CAPTURE_BUFFER
 
typedef struct _CSR_API_MESSAGE CSR_API_MESSAGE
 
typedef struct _CSR_API_MESSAGEPCSR_API_MESSAGE
 

Enumerations

enum  _CSRSRV_API_NUMBER {
  CsrpClientConnect = CSRSRV_FIRST_API_NUMBER , CsrpThreadConnect , CsrpProfileControl , CsrpIdentifyAlertableThread ,
  CsrpSetPriorityClass , CsrpMaxApiNumber
}
 

Functions

 C_ASSERT (sizeof(CSR_API_CONNECTINFO)<=LPC_MAX_DATA_LENGTH)
 
 C_ASSERT (sizeof(CSR_API_MESSAGE)<=LPC_MAX_MESSAGE_LENGTH)
 

Macro Definition Documentation

◆ CHECK_API_MSG_SIZE

#define CHECK_API_MSG_SIZE (   type)    C_ASSERT(sizeof(type) <= sizeof(CSR_API_MESSAGE))

Definition at line 148 of file csrmsg.h.

◆ CSR_API_NUMBER_TO_API_ID

#define CSR_API_NUMBER_TO_API_ID (   ApiNumber)     (ULONG)((ULONG)(ApiNumber) & 0xFFFF)

Definition at line 43 of file csrmsg.h.

◆ CSR_API_NUMBER_TO_SERVER_ID

#define CSR_API_NUMBER_TO_SERVER_ID (   ApiNumber)     (ULONG)((ULONG)(ApiNumber) >> 16)

Definition at line 40 of file csrmsg.h.

◆ CSR_CREATE_API_NUMBER

#define CSR_CREATE_API_NUMBER (   ServerId,
  ApiId 
)     (CSR_API_NUMBER)(((ServerId) << 16) | (ApiId))

Definition at line 37 of file csrmsg.h.

◆ CSR_PORT_NAME

#define CSR_PORT_NAME   L"ApiPort"

Definition at line 17 of file csrmsg.h.

◆ CSRSRV_FIRST_API_NUMBER

#define CSRSRV_FIRST_API_NUMBER   0

Definition at line 21 of file csrmsg.h.

◆ CSRSRV_SERVERDLL_INDEX

#define CSRSRV_SERVERDLL_INDEX   0

Definition at line 20 of file csrmsg.h.

Typedef Documentation

◆ CSR_API_CONNECTINFO

◆ CSR_API_MESSAGE

◆ CSR_API_NUMBER

Definition at line 35 of file csrmsg.h.

◆ CSR_CAPTURE_BUFFER

◆ CSR_CLIENT_CONNECT

◆ CSRSRV_API_NUMBER

◆ PCSR_API_CONNECTINFO

◆ PCSR_API_MESSAGE

◆ PCSR_CAPTURE_BUFFER

◆ PCSR_CLIENT_CONNECT

◆ PCSRSRV_API_NUMBER

Enumeration Type Documentation

◆ _CSRSRV_API_NUMBER

Enumerator
CsrpClientConnect 
CsrpThreadConnect 
CsrpProfileControl 
CsrpIdentifyAlertableThread 
CsrpSetPriorityClass 
CsrpMaxApiNumber 

Definition at line 23 of file csrmsg.h.

24{
30
enum _CSRSRV_API_NUMBER CSRSRV_API_NUMBER
enum _CSRSRV_API_NUMBER * PCSRSRV_API_NUMBER
#define CSRSRV_FIRST_API_NUMBER
Definition: csrmsg.h:21
@ CsrpThreadConnect
Definition: csrmsg.h:26
@ CsrpSetPriorityClass
Definition: csrmsg.h:29
@ CsrpProfileControl
Definition: csrmsg.h:27
@ CsrpMaxApiNumber
Definition: csrmsg.h:31
@ CsrpClientConnect
Definition: csrmsg.h:25
@ CsrpIdentifyAlertableThread
Definition: csrmsg.h:28

Function Documentation

◆ C_ASSERT() [1/2]

C_ASSERT ( sizeof(CSR_API_CONNECTINFO)<=  LPC_MAX_DATA_LENGTH)

◆ C_ASSERT() [2/2]

C_ASSERT ( sizeof(CSR_API_MESSAGE)<=  LPC_MAX_MESSAGE_LENGTH)