26 |
void |
void |
27 |
rdp5_process(STREAM s, BOOL encryption) |
rdp5_process(STREAM s, BOOL encryption) |
28 |
{ |
{ |
29 |
uint16 length, count; |
uint16 length, count, x, y; |
30 |
uint8 type; |
uint8 type; |
31 |
uint8 *next; |
uint8 *next; |
32 |
|
|
49 |
|
|
50 |
switch (type) |
switch (type) |
51 |
{ |
{ |
52 |
|
/* Thanks to Jeroen Meijer <jdmeijer at yahoo |
53 |
|
dot com> for finding out the meaning of |
54 |
|
most of the opcodes here. Especially opcode |
55 |
|
8! :) */ |
56 |
case 0: /* orders */ |
case 0: /* orders */ |
57 |
in_uint16_le(s, count); |
in_uint16_le(s, count); |
58 |
process_orders(s, count); |
process_orders(s, count); |
70 |
case 5: |
case 5: |
71 |
process_null_system_pointer_pdu(s); |
process_null_system_pointer_pdu(s); |
72 |
break; |
break; |
73 |
|
case 8: |
74 |
|
in_uint16_le(s, x); |
75 |
|
in_uint16_le(s, y); |
76 |
|
if (s_check(s)) |
77 |
|
ui_move_pointer(x, y); |
78 |
|
break; |
79 |
case 9: |
case 9: |
80 |
process_colour_pointer_pdu(s); |
process_colour_pointer_pdu(s); |
81 |
break; |
break; |