ReactOS  0.4.14-dev-384-g5b37caa
api.h File Reference
#include <sm/ns.h>
#include <pshpack4.h>
#include <poppack.h>
Include dependency graph for api.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SM_CONNECT_DATA
 
struct  _SB_CONNECT_DATA
 
struct  _SM_PORT_MESSAGE_COMPSES
 
struct  _SM_PORT_MESSAGE_EXECPGM
 
struct  _SM_BASIC_INFORMATION
 
struct  _SM_SUBSYSTEM_INFORMATION
 
struct  _SM_PORT_MESSAGE_QRYINFO
 
struct  _SM_PORT_MESSAGE
 

Macros

#define SM_SB_NAME_MAX_LENGTH   120
 
#define SM_API_COMPLETE_SESSION   1 /* complete a session initialization */
 
#define SM_API_2   2
 
#define SM_API_3   3
 
#define SM_API_EXECUTE_PROGRAMME   4 /* start a subsystem (server) */
 
#define SM_EXEXPGM_MAX_LENGTH   32 /* max count of wide string */
 
#define SM_API_QUERY_INFORMATION   5 /* ask SM to send back some data */
 
#define SM_QRYINFO_MAX_SS_COUNT   8
 
#define SM_QRYINFO_MAX_ROOT_NODE   30
 
#define SM_CONNECT_DATA_SIZE(m)   ((m).Header.u1.s1.DataLength-sizeof(USHORT)-sizeof(WORD))
 
#define SM_PORT_DATA_SIZE(c)   (sizeof(DWORD)+sizeof(NTSTATUS)+sizeof(c))
 
#define SM_PORT_MESSAGE_SIZE   (sizeof(SM_PORT_MESSAGE))
 

Typedefs

typedef struct _SM_CONNECT_DATA SM_CONNECT_DATA
 
typedef struct _SM_CONNECT_DATAPSM_CONNECT_DATA
 
typedef struct _SB_CONNECT_DATA SB_CONNECT_DATA
 
typedef struct _SB_CONNECT_DATAPSB_CONNECT_DATA
 
typedef struct _SM_PORT_MESSAGE_COMPSES SM_PORT_MESSAGE_COMPSES
 
typedef struct _SM_PORT_MESSAGE_COMPSESPSM_PORT_MESSAGE_COMPSES
 
typedef struct _SM_PORT_MESSAGE_EXECPGM SM_PORT_MESSAGE_EXECPGM
 
typedef struct _SM_PORT_MESSAGE_EXECPGMPSM_PORT_MESSAGE_EXECPGM
 
typedef struct _SM_BASIC_INFORMATION SM_BASIC_INFORMATION
 
typedef struct _SM_BASIC_INFORMATIONPSM_BASIC_INFORMATION
 
typedef struct _SM_SUBSYSTEM_INFORMATION SM_SUBSYSTEM_INFORMATION
 
typedef struct _SM_SUBSYSTEM_INFORMATIONPSM_SUBSYSTEM_INFORMATION
 
typedef struct _SM_PORT_MESSAGE_QRYINFO SM_PORT_MESSAGE_QRYINFO
 
typedef struct _SM_PORT_MESSAGE_QRYINFOPSM_PORT_MESSAGE_QRYINFO
 
typedef struct _SM_PORT_MESSAGE SM_PORT_MESSAGE
 
typedef struct _SM_PORT_MESSAGEPSM_PORT_MESSAGE
 

Enumerations

enum  SM_INFORMATION_CLASS { SmBasicInformation = 0, SmSubSystemInformation = 1 }
 

Macro Definition Documentation

◆ SM_API_2

#define SM_API_2   2

Definition at line 43 of file api.h.

◆ SM_API_3

#define SM_API_3   3

Definition at line 49 of file api.h.

◆ SM_API_COMPLETE_SESSION

#define SM_API_COMPLETE_SESSION   1 /* complete a session initialization */

Definition at line 32 of file api.h.

◆ SM_API_EXECUTE_PROGRAMME

#define SM_API_EXECUTE_PROGRAMME   4 /* start a subsystem (server) */

Definition at line 55 of file api.h.

◆ SM_API_QUERY_INFORMATION

#define SM_API_QUERY_INFORMATION   5 /* ask SM to send back some data */

Definition at line 68 of file api.h.

◆ SM_CONNECT_DATA_SIZE

#define SM_CONNECT_DATA_SIZE (   m)    ((m).Header.u1.s1.DataLength-sizeof(USHORT)-sizeof(WORD))

Definition at line 148 of file api.h.

◆ SM_EXEXPGM_MAX_LENGTH

#define SM_EXEXPGM_MAX_LENGTH   32 /* max count of wide string */

Definition at line 57 of file api.h.

◆ SM_PORT_DATA_SIZE

#define SM_PORT_DATA_SIZE (   c)    (sizeof(DWORD)+sizeof(NTSTATUS)+sizeof(c))

Definition at line 149 of file api.h.

◆ SM_PORT_MESSAGE_SIZE

#define SM_PORT_MESSAGE_SIZE   (sizeof(SM_PORT_MESSAGE))

Definition at line 150 of file api.h.

◆ SM_QRYINFO_MAX_ROOT_NODE

#define SM_QRYINFO_MAX_ROOT_NODE   30

Definition at line 71 of file api.h.

◆ SM_QRYINFO_MAX_SS_COUNT

#define SM_QRYINFO_MAX_SS_COUNT   8

Definition at line 70 of file api.h.

◆ SM_SB_NAME_MAX_LENGTH

#define SM_SB_NAME_MAX_LENGTH   120

Definition at line 8 of file api.h.

Typedef Documentation

◆ PSB_CONNECT_DATA

◆ PSM_BASIC_INFORMATION

◆ PSM_CONNECT_DATA

◆ PSM_PORT_MESSAGE

◆ PSM_PORT_MESSAGE_COMPSES

◆ PSM_PORT_MESSAGE_EXECPGM

◆ PSM_PORT_MESSAGE_QRYINFO

◆ PSM_SUBSYSTEM_INFORMATION

◆ SB_CONNECT_DATA

◆ SM_BASIC_INFORMATION

◆ SM_CONNECT_DATA

◆ SM_PORT_MESSAGE

◆ SM_PORT_MESSAGE_COMPSES

◆ SM_PORT_MESSAGE_EXECPGM

◆ SM_PORT_MESSAGE_QRYINFO

◆ SM_SUBSYSTEM_INFORMATION

Enumeration Type Documentation

◆ SM_INFORMATION_CLASS

Enumerator
SmBasicInformation 
SmSubSystemInformation 

Definition at line 73 of file api.h.

73  {
SM_INFORMATION_CLASS
Definition: api.h:73