49 |
extern int g_height; |
extern int g_height; |
50 |
extern BOOL g_bitmap_cache; |
extern BOOL g_bitmap_cache; |
51 |
extern BOOL g_bitmap_cache_persist_enable; |
extern BOOL g_bitmap_cache_persist_enable; |
52 |
|
extern BOOL g_numlock_sync; |
53 |
|
|
54 |
uint8 *g_next_packet; |
uint8 *g_next_packet; |
55 |
uint32 g_rdp_shareid; |
uint32 g_rdp_shareid; |
972 |
rdp_recv(&type); /* RDP_PDU_SYNCHRONIZE */ |
rdp_recv(&type); /* RDP_PDU_SYNCHRONIZE */ |
973 |
rdp_recv(&type); /* RDP_CTL_COOPERATE */ |
rdp_recv(&type); /* RDP_CTL_COOPERATE */ |
974 |
rdp_recv(&type); /* RDP_CTL_GRANT_CONTROL */ |
rdp_recv(&type); /* RDP_CTL_GRANT_CONTROL */ |
975 |
rdp_send_input(0, RDP_INPUT_SYNCHRONIZE, 0, ui_get_numlock_state(read_keyboard_state()), 0); |
rdp_send_input(0, RDP_INPUT_SYNCHRONIZE, 0, |
976 |
|
g_numlock_sync ? ui_get_numlock_state(read_keyboard_state()) : 0, 0); |
977 |
|
|
978 |
if (g_use_rdp5) |
if (g_use_rdp5) |
979 |
{ |
{ |
1293 |
|
|
1294 |
case RDP_DATA_PDU_DISCONNECT: |
case RDP_DATA_PDU_DISCONNECT: |
1295 |
process_disconnect_pdu(s, ext_disc_reason); |
process_disconnect_pdu(s, ext_disc_reason); |
1296 |
return True; |
|
1297 |
|
/* We used to return true and disconnect immediately here, but |
1298 |
|
* Windows Vista sends a disconnect PDU with reason 0 when |
1299 |
|
* reconnecting to a disconnected session, and MSTSC doesn't |
1300 |
|
* drop the connection. I think we should just save the status. |
1301 |
|
*/ |
1302 |
|
break; |
1303 |
|
|
1304 |
default: |
default: |
1305 |
unimpl("data PDU %d\n", data_pdu_type); |
unimpl("data PDU %d\n", data_pdu_type); |