ReactOS 0.4.16-dev-340-g0540c21
xxxwin.c File Reference
#include "../rdesktop.h"
Include dependency graph for xxxwin.c:

Go to the source code of this file.

Functions

void ui_bell (void)
 
int ui_select (int in)
 
void ui_destroy_cursor (void *cursor)
 
voidui_create_glyph (int width, int height, uint8 *data)
 
void ui_destroy_glyph (void *glyph)
 
void ui_destroy_bitmap (void *bmp)
 
void ui_reset_clip (void)
 
void ui_set_clip (int x, int y, int cx, int cy)
 
voidui_create_colourmap (COLOURMAP *colours)
 
void ui_set_colourmap (void *map)
 
HBITMAP ui_create_bitmap (int width, int height, uint8 *data)
 
void ui_draw_text (uint8 font, uint8 flags, uint8 opcode, int mixmode, int x, int y, int clipx, int clipy, int clipcx, int clipcy, int boxx, int boxy, int boxcx, int boxcy, BRUSH *brush, int bgcolour, int fgcolour, uint8 *text, uint8 length)
 
void ui_line (uint8 opcode, int startx, int starty, int endx, int endy, PEN *pen)
 
void ui_triblt (uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy, BRUSH *brush, int bgcolour, int fgcolour)
 
void ui_memblt (uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy)
 
void ui_desktop_restore (uint32 offset, int x, int y, int cx, int cy)
 
void ui_desktop_save (uint32 offset, int x, int y, int cx, int cy)
 
void ui_rect (int x, int y, int cx, int cy, int colour)
 
void ui_screenblt (uint8 opcode, int x, int y, int cx, int cy, int srcx, int srcy)
 
void ui_patblt (uint8 opcode, int x, int y, int cx, int cy, BRUSH *brush, int bgcolour, int fgcolour)
 
void ui_destblt (uint8 opcode, int x, int y, int cx, int cy)
 
void ui_move_pointer (int x, int y)
 
void ui_set_null_cursor (void)
 
void ui_paint_bitmap (int x, int y, int cx, int cy, int width, int height, uint8 *data)
 
void ui_set_cursor (HCURSOR cursor)
 
HCURSOR ui_create_cursor (unsigned int x, unsigned int y, int width, int height, uint8 *andmask, uint8 *xormask)
 
uint16 ui_get_numlock_state (unsigned int state)
 
unsigned int read_keyboard_state (void)
 
void ui_resize_window (void)
 
void ui_begin_update (void)
 
void ui_end_update (void)
 
void ui_polygon (uint8 opcode, uint8 fillmode, POINT *point, int npoints, BRUSH *brush, int bgcolour, int fgcolour)
 
void ui_polyline (uint8 opcode, POINT *points, int npoints, PEN *pen)
 
void ui_ellipse (uint8 opcode, uint8 fillmode, int x, int y, int cx, int cy, BRUSH *brush, int bgcolour, int fgcolour)
 
void generate_random (uint8 *random)
 
void save_licence (uint8 *data, int length)
 
int load_licence (uint8 **data)
 
voidxrealloc (void *in, int size)
 
voidxmalloc (int size)
 
void xfree (void *in)
 
charxstrdup (const char *s)
 
void warning (char *format,...)
 
void unimpl (char *format,...)
 
void error (char *format,...)
 
BOOL rd_pstcache_mkdir (void)
 
int rd_open_file (char *filename)
 
void rd_close_file (int fd)
 
int rd_read_file (int fd, void *ptr, int len)
 
int rd_write_file (int fd, void *ptr, int len)
 
int rd_lseek_file (int fd, int offset)
 
BOOL rd_lock_file (int fd, int start, int len)
 
int main (int c, char **p)
 

Variables

int g_tcp_port_rdp
 
int g_use_rdp5 = 0
 
char g_hostname [16]
 
char g_username [64]
 
int g_height = 600
 
int g_width = 800
 
int g_server_depth = 8
 
int g_encryption = 1
 
int g_desktop_save = 1
 
int g_polygon_ellipse_orders = 0
 
int g_bitmap_cache = 1
 
int g_bitmap_cache_persist_enable = False
 
int g_bitmap_cache_precache = True
 
int g_bitmap_compression = 1
 
int g_rdp5_performanceflags = 0
 
int g_console_session = 0
 
int g_keylayout = 0x409
 
int g_keyboard_type = 0x4
 
int g_keyboard_subtype = 0x0
 
int g_keyboard_functionkeys = 0xc
 
BOOL g_redirect = False
 
char g_redirect_server [64]
 
char g_redirect_domain [16]
 
char g_redirect_password [64]
 
char g_redirect_username [64]
 
char g_redirect_cookie [128]
 
uint32 g_redirect_flags = 0
 

Function Documentation

◆ error()

void error ( char format,
  ... 
)

Definition at line 315 of file xxxwin.c.

316{
317}

◆ generate_random()

void generate_random ( uint8 random)

Definition at line 261 of file xxxwin.c.

262{
263}

Referenced by sec_process_crypt_info().

◆ load_licence()

int load_licence ( uint8 **  data)

Definition at line 271 of file xxxwin.c.

272{
273 return 0;
274}

◆ main()

int main ( int  c,
char **  p 
)

Definition at line 362 of file xxxwin.c.

363{
364 return 0;
365}

◆ rd_close_file()

void rd_close_file ( int  fd)

Definition at line 332 of file xxxwin.c.

333{
334 return;
335}

Referenced by pstcache_init().

◆ rd_lock_file()

BOOL rd_lock_file ( int  fd,
int  start,
int  len 
)

Definition at line 356 of file xxxwin.c.

357{
358 return False;
359}
#define False
Definition: types.h:25

Referenced by pstcache_init().

◆ rd_lseek_file()

int rd_lseek_file ( int  fd,
int  offset 
)

Definition at line 350 of file xxxwin.c.

351{
352 return 0;
353}

Referenced by pstcache_enumerate(), pstcache_load_bitmap(), pstcache_save_bitmap(), and pstcache_touch_bitmap().

◆ rd_open_file()

int rd_open_file ( char filename)

Definition at line 326 of file xxxwin.c.

327{
328 return 0;
329}

Referenced by pstcache_init().

◆ rd_pstcache_mkdir()

BOOL rd_pstcache_mkdir ( void  )

Definition at line 320 of file xxxwin.c.

321{
322 return 0;
323}

Referenced by pstcache_init().

◆ rd_read_file()

int rd_read_file ( int  fd,
void ptr,
int  len 
)

Definition at line 338 of file xxxwin.c.

339{
340 return 0;
341}

Referenced by pstcache_enumerate(), and pstcache_load_bitmap().

◆ rd_write_file()

int rd_write_file ( int  fd,
void ptr,
int  len 
)

Definition at line 344 of file xxxwin.c.

345{
346 return 0;
347}

Referenced by pstcache_save_bitmap(), and pstcache_touch_bitmap().

◆ read_keyboard_state()

unsigned int read_keyboard_state ( void  )

Definition at line 207 of file xxxwin.c.

208{
209 return 0;
210}

Referenced by handle_special_keys(), process_demand_active(), and reset_modifier_keys().

◆ save_licence()

void save_licence ( uint8 data,
int  length 
)

Definition at line 266 of file xxxwin.c.

267{
268}

◆ ui_begin_update()

void ui_begin_update ( void  )

Definition at line 218 of file xxxwin.c.

219{
220}

◆ ui_bell()

void ui_bell ( void  )

Definition at line 53 of file xxxwin.c.

54{
55}

◆ ui_create_bitmap()

HBITMAP ui_create_bitmap ( int  width,
int  height,
uint8 data 
)

Definition at line 106 of file xxxwin.c.

107{
108 return 0;
109}

◆ ui_create_colourmap()

void * ui_create_colourmap ( COLOURMAP colours)

Definition at line 95 of file xxxwin.c.

96{
97 return 0;
98}

◆ ui_create_cursor()

HCURSOR ui_create_cursor ( unsigned int  x,
unsigned int  y,
int  width,
int  height,
uint8 andmask,
uint8 xormask 
)

Definition at line 193 of file xxxwin.c.

196{
197 return 0;
198}

◆ ui_create_glyph()

void * ui_create_glyph ( int  width,
int  height,
uint8 data 
)

Definition at line 69 of file xxxwin.c.

70{
71 return 0;
72}

◆ ui_desktop_restore()

void ui_desktop_restore ( uint32  offset,
int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 140 of file xxxwin.c.

141{
142}

◆ ui_desktop_save()

void ui_desktop_save ( uint32  offset,
int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 145 of file xxxwin.c.

146{
147}

◆ ui_destblt()

void ui_destblt ( uint8  opcode,
int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 167 of file xxxwin.c.

168{
169}

◆ ui_destroy_bitmap()

void ui_destroy_bitmap ( void bmp)

Definition at line 80 of file xxxwin.c.

81{
82}

◆ ui_destroy_cursor()

void ui_destroy_cursor ( void cursor)

Definition at line 64 of file xxxwin.c.

65{
66}

◆ ui_destroy_glyph()

void ui_destroy_glyph ( void glyph)

Definition at line 75 of file xxxwin.c.

76{
77}

◆ ui_draw_text()

void ui_draw_text ( uint8  font,
uint8  flags,
uint8  opcode,
int  mixmode,
int  x,
int  y,
int  clipx,
int  clipy,
int  clipcx,
int  clipcy,
int  boxx,
int  boxy,
int  boxcx,
int  boxcy,
BRUSH brush,
int  bgcolour,
int  fgcolour,
uint8 text,
uint8  length 
)

Definition at line 112 of file xxxwin.c.

117{
118}

Referenced by process_text2().

◆ ui_ellipse()

void ui_ellipse ( uint8  opcode,
uint8  fillmode,
int  x,
int  y,
int  cx,
int  cy,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 254 of file xxxwin.c.

257{
258}

Referenced by process_ellipse(), and process_ellipse2().

◆ ui_end_update()

void ui_end_update ( void  )

Definition at line 223 of file xxxwin.c.

224{
225}

◆ ui_get_numlock_state()

uint16 ui_get_numlock_state ( unsigned int  state)

Definition at line 201 of file xxxwin.c.

202{
203 return 0;
204}

Referenced by process_demand_active().

◆ ui_line()

void ui_line ( uint8  opcode,
int  startx,
int  starty,
int  endx,
int  endy,
PEN pen 
)

Definition at line 121 of file xxxwin.c.

123{
124}

Referenced by ui_polyline().

◆ ui_memblt()

void ui_memblt ( uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
HBITMAP  src,
int  srcx,
int  srcy 
)

Definition at line 134 of file xxxwin.c.

136{
137}

◆ ui_move_pointer()

void ui_move_pointer ( int  x,
int  y 
)

Definition at line 172 of file xxxwin.c.

173{
174}

◆ ui_paint_bitmap()

void ui_paint_bitmap ( int  x,
int  y,
int  cx,
int  cy,
int  width,
int  height,
uint8 data 
)

Definition at line 182 of file xxxwin.c.

184{
185}

◆ ui_patblt()

void ui_patblt ( uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 161 of file xxxwin.c.

163{
164}

◆ ui_polygon()

void ui_polygon ( uint8  opcode,
uint8  fillmode,
POINT point,
int  npoints,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 228 of file xxxwin.c.

230{
231}

◆ ui_polyline()

void ui_polyline ( uint8  opcode,
POINT points,
int  npoints,
PEN pen 
)

Definition at line 235 of file xxxwin.c.

236{
237 int i, x, y, dx, dy;
238 if (npoints > 0)
239 {
240 x = points[0].x;
241 y = points[0].y;
242 for (i = 1; i < npoints; i++)
243 {
244 dx = points[i].x;
245 dy = points[i].y;
246 ui_line(opcode, x, y, x + dx, y + dy, pen);
247 x = x + dx;
248 y = y + dy;
249 }
250 }
251}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLsizei const GLfloat * points
Definition: glext.h:8112
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97
void ui_line(uint8 opcode, int startx, int starty, int endx, int endy, PEN *pen)
Definition: xxxwin.c:121

◆ ui_rect()

void ui_rect ( int  x,
int  y,
int  cx,
int  cy,
int  colour 
)

Definition at line 150 of file xxxwin.c.

151{
152}

◆ ui_reset_clip()

void ui_reset_clip ( void  )

Definition at line 85 of file xxxwin.c.

86{
87}

◆ ui_resize_window()

void ui_resize_window ( void  )

Definition at line 213 of file xxxwin.c.

214{
215}

◆ ui_screenblt()

void ui_screenblt ( uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
int  srcx,
int  srcy 
)

Definition at line 155 of file xxxwin.c.

157{
158}

◆ ui_select()

int ui_select ( int  in)

Definition at line 58 of file xxxwin.c.

59{
60 return 1;
61}

◆ ui_set_clip()

void ui_set_clip ( int  x,
int  y,
int  cx,
int  cy 
)

Definition at line 90 of file xxxwin.c.

91{
92}

◆ ui_set_colourmap()

void ui_set_colourmap ( void map)

Definition at line 101 of file xxxwin.c.

102{
103}

◆ ui_set_cursor()

void ui_set_cursor ( HCURSOR  cursor)

Definition at line 188 of file xxxwin.c.

189{
190}

◆ ui_set_null_cursor()

void ui_set_null_cursor ( void  )

Definition at line 177 of file xxxwin.c.

178{
179}

◆ ui_triblt()

void ui_triblt ( uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
HBITMAP  src,
int  srcx,
int  srcy,
BRUSH brush,
int  bgcolour,
int  fgcolour 
)

Definition at line 127 of file xxxwin.c.

130{
131}

◆ unimpl()

◆ warning()

void warning ( char format,
  ... 
)

Definition at line 305 of file xxxwin.c.

306{
307}

◆ xfree()

void xfree ( void in)

Definition at line 289 of file xxxwin.c.

290{
291}

◆ xmalloc()

void * xmalloc ( int  size)

Definition at line 283 of file xxxwin.c.

284{
285 return 0;
286}

Referenced by add_async_iorequest(), add_block(), add_block_index(), add_filename_node(), add_func_desc(), add_importlib(), add_sequence(), add_structure_typeinfo(), add_to_keymap(), add_typeinfo_block(), add_var_desc(), AskTagProc(), cache_put_text(), check_for_additional_prototype_types(), cliprdr_send_native_format_announce(), create_library_block(), create_msft_typeinfo(), create_msft_typelib(), ctl2_alloc_segment(), disk_enum_devices(), format_namespace(), get_file_version(), get_subtests(), init_sltg_data(), lf2crlf(), local_href(), lspci_process(), main(), make_expr(), make_expr1(), make_expr2(), make_expr3(), make_exprd(), make_exprl(), make_exprs(), make_exprt(), new_index_name(), NotifyInfo(), of_reverse(), output_typelib_regscript(), QMyMainWindow::paintEvent(), parallel_enum_devices(), pathjoin(), printer_enum_devices(), printercache_load_blob(), printercache_mkdir(), printercache_rename_blob(), printercache_save_blob(), printercache_unlink_blob(), process_bitmap_updates(), process_bmpcache(), process_bmpcache2(), process_brushcache(), process_colcache(), process_palette(), process_polygon(), process_polygon2(), process_polyline(), process_raw_bmpcache(), process_redirect_pdu(), pstcache_load_bitmap(), rdp_in_unistr(), rdpdr_process_irp(), rdssl_sign_ok(), read_importlib(), read_msft_importlib(), run_tests(), seamless_process(), sec_connect(), serial_enum_devices(), sltg_add_typeinfo(), sw_find_group(), tcp_connect(), QMyScrollView::timerEvent(), translate_image(), type_dispinterface_define(), type_dispinterface_define_from_iface(), type_interface_define(), type_module_define(), type_new_encapsulated_union(), type_new_enum(), type_new_function(), type_new_nonencapsulated_union(), type_new_struct(), ui_clip_format_announce(), ui_create_colourmap(), ui_create_cursor(), ui_seamless_create_window(), vncNewBuffer(), vncNewColourMap(), vncNewCursor(), write_conf_or_var_desc(), write_var_desc(), and xclip_send_data_with_convert().

◆ xrealloc()

void * xrealloc ( void in,
int  size 
)

Definition at line 277 of file xxxwin.c.

278{
279 return 0;
280}

◆ xstrdup()

char * xstrdup ( const char s)

Definition at line 294 of file xxxwin.c.

295{
296 char * mem = strdup(s);
297 if (mem == NULL)
298 {
299 perror("strdup");
300 exit(1);
301 }
302 return mem;
303}
#define NULL
Definition: types.h:112
GLdouble s
Definition: gl.h:2039
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
#define exit(n)
Definition: config.h:202
Definition: mem.c:349

Variable Documentation

◆ g_bitmap_cache

int g_bitmap_cache = 1

Definition at line 33 of file xxxwin.c.

Referenced by pstcache_enumerate(), pstcache_init(), and rdp_out_order_caps().

◆ g_bitmap_cache_persist_enable

int g_bitmap_cache_persist_enable = False

◆ g_bitmap_cache_precache

int g_bitmap_cache_precache = True

Definition at line 35 of file xxxwin.c.

Referenced by pstcache_enumerate().

◆ g_bitmap_compression

int g_bitmap_compression = 1

Definition at line 36 of file xxxwin.c.

Referenced by rdp_out_bitmap_caps().

◆ g_console_session

int g_console_session = 0

Definition at line 38 of file xxxwin.c.

Referenced by sec_out_mcs_data().

◆ g_desktop_save

int g_desktop_save = 1

Definition at line 31 of file xxxwin.c.

Referenced by rdp_out_order_caps().

◆ g_encryption

◆ g_height

◆ g_hostname

char g_hostname[16]

◆ g_keyboard_functionkeys

int g_keyboard_functionkeys = 0xc

Definition at line 42 of file xxxwin.c.

Referenced by sec_out_mcs_data().

◆ g_keyboard_subtype

int g_keyboard_subtype = 0x0

Definition at line 41 of file xxxwin.c.

Referenced by sec_out_mcs_data().

◆ g_keyboard_type

int g_keyboard_type = 0x4

Definition at line 40 of file xxxwin.c.

Referenced by sec_out_mcs_data().

◆ g_keylayout

int g_keylayout = 0x409

Definition at line 39 of file xxxwin.c.

Referenced by sec_out_mcs_data().

◆ g_polygon_ellipse_orders

int g_polygon_ellipse_orders = 0

Definition at line 32 of file xxxwin.c.

Referenced by rdp_out_order_caps().

◆ g_rdp5_performanceflags

int g_rdp5_performanceflags = 0

Definition at line 37 of file xxxwin.c.

Referenced by rdp_send_logon_info().

◆ g_redirect

BOOL g_redirect = False

Definition at line 44 of file xxxwin.c.

Referenced by process_redirect_pdu(), rdp_connect(), rdp_main_loop(), and rdp_send_logon_info().

◆ g_redirect_cookie

char g_redirect_cookie[128]

Definition at line 49 of file xxxwin.c.

Referenced by process_redirect_pdu(), and rdp_send_logon_info().

◆ g_redirect_domain

char g_redirect_domain[16]

Definition at line 46 of file xxxwin.c.

Referenced by process_redirect_pdu().

◆ g_redirect_flags

uint32 g_redirect_flags = 0

Definition at line 50 of file xxxwin.c.

Referenced by process_redirect_pdu().

◆ g_redirect_password

char g_redirect_password[64]

Definition at line 47 of file xxxwin.c.

◆ g_redirect_server

char g_redirect_server[64]

Definition at line 45 of file xxxwin.c.

Referenced by process_redirect_pdu().

◆ g_redirect_username

char g_redirect_username[64]

Definition at line 48 of file xxxwin.c.

Referenced by process_redirect_pdu().

◆ g_server_depth

◆ g_tcp_port_rdp

int g_tcp_port_rdp
extern

Definition at line 75 of file tcp.c.

Referenced by tcp_connect().

◆ g_use_rdp5

int g_use_rdp5 = 0

Definition at line 24 of file xxxwin.c.

◆ g_username

char g_username[64]

◆ g_width