21 #ifndef FREERDP_SERVER_WIN_MIRAGE_H
22 #define FREERDP_SERVER_WIN_MIRAGE_H
24 #include "wf_interface.h"
34 DMF_ESCAPE_BASE_1_VB = 1030,
35 DMF_ESCAPE_BASE_2_VB = 1026,
36 DMF_ESCAPE_BASE_3_VB = 24
41 #define CLIENT_64BIT 0x8000
45 DMF_ESCAPE_BASE_1 = CLIENT_64BIT | DMF_ESCAPE_BASE_1_VB,
46 DMF_ESCAPE_BASE_2 = CLIENT_64BIT | DMF_ESCAPE_BASE_2_VB,
47 DMF_ESCAPE_BASE_3 = CLIENT_64BIT | DMF_ESCAPE_BASE_3_VB,
54 DMF_ESCAPE_BASE_1 = DMF_ESCAPE_BASE_1_VB,
55 DMF_ESCAPE_BASE_2 = DMF_ESCAPE_BASE_2_VB,
56 DMF_ESCAPE_BASE_3 = DMF_ESCAPE_BASE_3_VB,
63 dmf_esc_qry_ver_info = DMF_ESCAPE_BASE_2 + 0,
64 dmf_esc_usm_pipe_map = DMF_ESCAPE_BASE_1 + 0,
65 dmf_esc_usm_pipe_unmap = DMF_ESCAPE_BASE_1 + 1,
66 dmf_esc_test = DMF_ESCAPE_BASE_1 + 20,
67 dmf_esc_usm_pipe_mapping_test = DMF_ESCAPE_BASE_1 + 21,
68 dmf_esc_pointer_shape_get = DMF_ESCAPE_BASE_3,
73 #define MAXCHANGES_BUF 20000
78 dmf_dfo_FROM_SCREEN = 1,
80 dmf_dfo_TO_SCREEN = 3,
81 dmf_dfo_SCREEN_SCREEN = 11,
83 dmf_dfo_SOLIDFILL = 13,
88 dmf_dfo_Ptr_Shape = 19,
89 dmf_dfo_Ptr_Engage = 48,
90 dmf_dfo_Ptr_Avert = 49,
91 dmf_dfn_assert_on = 64,
92 dmf_dfn_assert_off = 65,
103 #ifndef DFMIRAGE_LEAN
119 #define EXT_DEVMODE_SIZE_MAX 3072
120 #define DMF_PIPE_SEC_SIZE_DEFAULT ALIGN64K(sizeof(CHANGES_BUF))
128 #define dmf_sprb_ERRORMASK 0x07FF
129 #define dmf_sprb_STRICTSESSION_AFF 0x1FFF
133 dmf_sprb_internal_error = 0x0001,
134 dmf_sprb_miniport_gen_error = 0x0004,
135 dmf_sprb_memory_alloc_failed = 0x0008,
136 dmf_sprb_pipe_buff_overflow = 0x0010,
137 dmf_sprb_pipe_buff_insufficient = 0x0020,
138 dmf_sprb_pipe_not_ready = 0x0040,
139 dmf_sprb_gdi_err = 0x0100,
140 dmf_sprb_owner_died = 0x0400,
141 dmf_sprb_tgtwnd_gone = 0x0800,
142 dmf_sprb_pdev_detached = 0x2000,
143 } dmf_session_prob_status;
145 #define DMF_ESC_RET_FAILF 0x80000000
146 #define DMF_ESC_RET_SSTMASK 0x0000FFFF
147 #define DMF_ESC_RET_IMMMASK 0x7FFF0000
151 dmf_escret_generic_ok = 0x00010000,
152 dmf_escret_bad_state = 0x00100000,
153 dmf_escret_access_denied = 0x00200000,
154 dmf_escret_bad_buffer_size = 0x00400000,
155 dmf_escret_internal_err = 0x00800000,
156 dmf_escret_out_of_memory = 0x02000000,
157 dmf_escret_already_connected = 0x04000000,
158 dmf_escret_oh_boy_too_late = 0x08000000,
159 dmf_escret_bad_window = 0x10000000,
160 dmf_escret_drv_ver_higher = 0x20000000,
161 dmf_escret_drv_ver_lower = 0x40000000,
167 ULONG app_actual_version;
168 ULONG display_minreq_version;
169 ULONG connect_options;
174 esc_qvi_prod_name_max = 16,
177 #define ESC_QVI_PROD_MIRAGE "MIRAGE"
178 #define ESC_QVI_PROD_QUASAR "QUASAR"
183 ULONG display_actual_version;
184 ULONG miniport_actual_version;
185 ULONG app_minreq_version;
186 ULONG display_buildno;
187 ULONG miniport_buildno;
188 char prod_name[esc_qvi_prod_name_max];
207 ULONG nColorBmPalEntries;
210 BOOL wf_mirror_driver_find_display_device(wfInfo* wfi);
211 BOOL wf_mirror_driver_display_device_attach(wfInfo* wfi, DWORD mode);
212 BOOL wf_mirror_driver_update(wfInfo* wfi,
int mode);
213 BOOL wf_mirror_driver_map_memory(wfInfo* wfi);
214 BOOL wf_mirror_driver_cleanup(wfInfo* wfi);
216 BOOL wf_mirror_driver_activate(wfInfo* wfi);
217 void wf_mirror_driver_deactivate(wfInfo* wfi);