FreeRDP
types.h
1 
21 #ifndef FREERDP_TYPES_H
22 #define FREERDP_TYPES_H
23 
24 #include <winpr/wtypes.h>
25 #include <winpr/wtsapi.h>
26 
27 #ifndef MIN
28 #define MIN(x, y) (((x) < (y)) ? (x) : (y))
29 #endif
30 
31 #ifndef MAX
32 #define MAX(x, y) (((x) > (y)) ? (x) : (y))
33 #endif
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
40  typedef enum
41  {
42  CONNECTION_STATE_INITIAL,
43  CONNECTION_STATE_NEGO,
44  CONNECTION_STATE_NLA,
45  CONNECTION_STATE_AAD,
46  CONNECTION_STATE_MCS_CREATE_REQUEST,
47  CONNECTION_STATE_MCS_CREATE_RESPONSE,
48  CONNECTION_STATE_MCS_ERECT_DOMAIN,
49  CONNECTION_STATE_MCS_ATTACH_USER,
50  CONNECTION_STATE_MCS_ATTACH_USER_CONFIRM,
51  CONNECTION_STATE_MCS_CHANNEL_JOIN_REQUEST,
52  CONNECTION_STATE_MCS_CHANNEL_JOIN_RESPONSE,
53  CONNECTION_STATE_RDP_SECURITY_COMMENCEMENT,
54  CONNECTION_STATE_SECURE_SETTINGS_EXCHANGE,
55  CONNECTION_STATE_CONNECT_TIME_AUTO_DETECT_REQUEST,
56  CONNECTION_STATE_CONNECT_TIME_AUTO_DETECT_RESPONSE,
57  CONNECTION_STATE_LICENSING,
58  CONNECTION_STATE_MULTITRANSPORT_BOOTSTRAPPING_REQUEST,
59  CONNECTION_STATE_MULTITRANSPORT_BOOTSTRAPPING_RESPONSE,
60  CONNECTION_STATE_CAPABILITIES_EXCHANGE_DEMAND_ACTIVE,
61  CONNECTION_STATE_CAPABILITIES_EXCHANGE_MONITOR_LAYOUT,
62  CONNECTION_STATE_CAPABILITIES_EXCHANGE_CONFIRM_ACTIVE,
63  CONNECTION_STATE_FINALIZATION_SYNC,
64  CONNECTION_STATE_FINALIZATION_COOPERATE,
65  CONNECTION_STATE_FINALIZATION_REQUEST_CONTROL,
66  CONNECTION_STATE_FINALIZATION_PERSISTENT_KEY_LIST,
67  CONNECTION_STATE_FINALIZATION_FONT_LIST,
68  CONNECTION_STATE_FINALIZATION_CLIENT_SYNC,
69  CONNECTION_STATE_FINALIZATION_CLIENT_COOPERATE,
70  CONNECTION_STATE_FINALIZATION_CLIENT_GRANTED_CONTROL,
71  CONNECTION_STATE_FINALIZATION_CLIENT_FONT_MAP,
72  CONNECTION_STATE_ACTIVE
73  } CONNECTION_STATE;
74 
75  typedef struct rdp_channels rdpChannels;
76  typedef struct rdp_freerdp freerdp;
77  typedef struct rdp_context rdpContext;
78  typedef struct rdp_freerdp_peer freerdp_peer;
79  typedef struct rdp_transport rdpTransport; /* Opaque */
80 
81  typedef struct
82  {
83  BYTE red;
84  BYTE green;
85  BYTE blue;
86  } PALETTE_ENTRY;
87 
88  typedef struct
89  {
90  UINT32 count;
91  PALETTE_ENTRY entries[256];
92  } rdpPalette;
93 
94  typedef struct
95  {
96  DWORD size;
97  void* data[4];
99 
100  typedef struct
101  {
102  INT16 x;
103  INT16 y;
104  INT16 width;
105  INT16 height;
106  } RDP_RECT;
107 
108  typedef struct
109  {
110  UINT16 left;
111  UINT16 top;
112  UINT16 right;
113  UINT16 bottom;
114  } RECTANGLE_16;
115 
116  typedef struct
117  {
118  UINT32 left;
119  UINT32 top;
120  UINT32 width;
121  UINT32 height;
122  } RECTANGLE_32;
123 
125  typedef enum
126  {
127  RDP_TRANSPORT_TCP = 0,
128  RDP_TRANSPORT_UDP_R,
129  RDP_TRANSPORT_UDP_L
130  } RDP_TRANSPORT_TYPE;
131 
132 #ifdef __cplusplus
133 }
134 #endif
135 
136 /* Plugin events */
137 
138 #include <freerdp/message.h>
139 #include <winpr/collections.h>
140 
141 #endif /* __RDP_TYPES_H */
Definition: types.h:82