/[rdesktop]/sourceforge.net/trunk/rdesktop/rdp.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8 by matty, Fri Jul 7 09:40:03 2000 UTC revision 9 by matty, Tue Jul 25 12:34:29 2000 UTC
# Line 22  enum RDP_PDU_TYPE Line 22  enum RDP_PDU_TYPE
22  {  {
23          RDP_PDU_DEMAND_ACTIVE = 1,          RDP_PDU_DEMAND_ACTIVE = 1,
24          RDP_PDU_CONFIRM_ACTIVE = 3,          RDP_PDU_CONFIRM_ACTIVE = 3,
25            RDP_PDU_DEACTIVATE = 6,
26          RDP_PDU_DATA = 7          RDP_PDU_DATA = 7
27  };  };
28    
# Line 218  typedef struct _RDP_ACTIVE_PDU Line 219  typedef struct _RDP_ACTIVE_PDU
219    
220  } RDP_ACTIVE_PDU;  } RDP_ACTIVE_PDU;
221    
222  typedef struct _RDP_SYNCHRONIZE_PDU  typedef struct _RDP_SYNCHRONISE_PDU
223  {  {
224          uint16 type;  // 1          uint16 type;  // 1
225          uint16 userid;          uint16 userid;
226    
227  } RDP_SYNCHRONIZE_PDU;  } RDP_SYNCHRONISE_PDU;
228    
229  #define RDP_CTL_REQUEST_CONTROL  1  #define RDP_CTL_REQUEST_CONTROL  1
230  #define RDP_CTL_GRANT_CONTROL    2  #define RDP_CTL_GRANT_CONTROL    2
# Line 241  typedef struct _RDP_CONTROL_PDU Line 242  typedef struct _RDP_CONTROL_PDU
242  #define RDP_INPUT_SYNCHRONIZE   0  #define RDP_INPUT_SYNCHRONIZE   0
243  #define RDP_INPUT_CODEPOINT     1  #define RDP_INPUT_CODEPOINT     1
244  #define RDP_INPUT_VIRTKEY       2  #define RDP_INPUT_VIRTKEY       2
245  #define RDP_INPUT_UNKNOWN       4  #define RDP_INPUT_SCANCODE      4
246  #define RDP_INPUT_MOUSE         0x8001  #define RDP_INPUT_MOUSE         0x8001
247    
248  #define KBD_FLAG_RIGHT          0x0001  #define KBD_FLAG_RIGHT          0x0001
249  #define KBD_FLAG_QUIET          0x1000  #define KBD_FLAG_QUIET          0x1000
250  #define KBD_FLAG_DOWN           0x4000  #define KBD_FLAG_DOWN           0x4000
251  #define KBD_FLAG_RELEASE        0x8000  #define KBD_FLAG_UP             0x8000
252    
253  #define MOUSE_FLAG_MOVE         0x0800  #define MOUSE_FLAG_MOVE         0x0800
254  #define MOUSE_FLAG_BUTTON1      0x1000  #define MOUSE_FLAG_BUTTON1      0x1000
# Line 262  typedef struct _RDP_INPUT_EVENT Line 263  typedef struct _RDP_INPUT_EVENT
263          uint32 event_time;          uint32 event_time;
264          uint16 message_type;          uint16 message_type;
265          uint16 device_flags;          uint16 device_flags;
266            uint16 param1;
267          uint16 kbd_keycode;          uint16 param2;
   
         uint16 mouse_x;  
         uint16 mouse_y;  
268    
269  } RDP_INPUT_EVENT;  } RDP_INPUT_EVENT;
270    
# Line 309  typedef struct _RDP_FONT_PDU Line 307  typedef struct _RDP_FONT_PDU
307  #define RDP_UPDATE_PALETTE      2  #define RDP_UPDATE_PALETTE      2
308  #define RDP_UPDATE_SYNCHRONIZE  3  #define RDP_UPDATE_SYNCHRONIZE  3
309    
310  typedef struct _OPAQUE_RECT_ORDER  typedef struct _DESTBLT_ORDER
311    {
312            uint16 x;
313            uint16 y;
314            uint16 cx;
315            uint16 cy;
316            uint8 opcode;
317    
318    } DESTBLT_ORDER;
319    
320    typedef struct _PATBLT_ORDER
321    {
322            uint16 x;
323            uint16 y;
324            uint16 cx;
325            uint16 cy;
326            uint8 opcode;
327            uint8 bgcolour;
328            uint8 fgcolour;
329            BRUSH brush;
330    
331    } PATBLT_ORDER;
332    
333    typedef struct _SCREENBLT_ORDER
334    {
335            uint16 x;
336            uint16 y;
337            uint16 cx;
338            uint16 cy;
339            uint8 opcode;
340            uint16 srcx;
341            uint16 srcy;
342    
343    } SCREENBLT_ORDER;
344    
345    typedef struct _LINE_ORDER
346    {
347            uint16 mixmode;
348            uint16 startx;
349            uint16 starty;
350            uint16 endx;
351            uint16 endy;
352            uint8 bgcolour;
353            uint8 opcode;
354            PEN pen;
355    
356    } LINE_ORDER;
357    
358    typedef struct _RECT_ORDER
359  {  {
360          uint16 x;          uint16 x;
361          uint16 y;          uint16 y;
# Line 317  typedef struct _OPAQUE_RECT_ORDER Line 363  typedef struct _OPAQUE_RECT_ORDER
363          uint16 cy;          uint16 cy;
364          uint8 colour;          uint8 colour;
365    
366  } OPAQUE_RECT_ORDER;  } RECT_ORDER;
367    
368    typedef struct _DESKSAVE_ORDER
369    {
370            uint32 offset;
371            uint16 left;
372            uint16 top;
373            uint16 right;
374            uint16 bottom;
375            uint8 action;
376    
377    } DESKSAVE_ORDER;
378    
379    typedef struct _TRIBLT_ORDER
380    {
381            uint8 colour_table;
382            uint8 cache_id;
383            uint16 x;
384            uint16 y;
385            uint16 cx;
386            uint16 cy;
387            uint8 opcode;
388            uint16 srcx;
389            uint16 srcy;
390            uint8 bgcolour;
391            uint8 fgcolour;
392            BRUSH brush;
393            uint16 cache_idx;
394            uint16 unknown;
395    
396    } TRIBLT_ORDER;
397    
398  typedef struct _MEMBLT_ORDER  typedef struct _MEMBLT_ORDER
399  {  {
400            uint8 colour_table;
401          uint8 cache_id;          uint8 cache_id;
402          uint16 x;          uint16 x;
403          uint16 y;          uint16 y;
404          uint16 cx;          uint16 cx;
405          uint16 cy;          uint16 cy;
406          uint8 opcode;          uint8 opcode;
407            uint16 srcx;
408            uint16 srcy;
409          uint16 cache_idx;          uint16 cache_idx;
410    
411  } MEMBLT_ORDER;  } MEMBLT_ORDER;
412    
413    #define MAX_TEXT 256
414    
415    #define MIX_TRANSPARENT 0
416    #define MIX_OPAQUE      1
417    
418    #define TEXT2_IMPLICIT_X 0x20
419    
420    typedef struct _TEXT2_ORDER
421    {
422            uint8 font;
423            uint8 flags;
424            uint8 mixmode;
425            uint8 unknown;
426            uint8 fgcolour;
427            uint8 bgcolour;
428            uint16 clipleft;
429            uint16 cliptop;
430            uint16 clipright;
431            uint16 clipbottom;
432            uint16 boxleft;
433            uint16 boxtop;
434            uint16 boxright;
435            uint16 boxbottom;
436            uint16 x;
437            uint16 y;
438            uint8 length;
439            uint8 text[MAX_TEXT];
440    
441    } TEXT2_ORDER;
442    
443  typedef struct _RDP_ORDER_STATE  typedef struct _RDP_ORDER_STATE
444  {  {
445          uint8 order_type;          uint8 order_type;
446            BOUNDS bounds;
447    
448          OPAQUE_RECT_ORDER opaque_rect;          DESTBLT_ORDER destblt;
449            PATBLT_ORDER patblt;
450            SCREENBLT_ORDER screenblt;
451            LINE_ORDER line;
452            RECT_ORDER rect;
453            DESKSAVE_ORDER desksave;
454          MEMBLT_ORDER memblt;          MEMBLT_ORDER memblt;
455            TRIBLT_ORDER triblt;
456            TEXT2_ORDER text2;
457    
458  } RDP_ORDER_STATE;  } RDP_ORDER_STATE;
459    
# Line 347  typedef struct _RDP_UPDATE_PDU Line 464  typedef struct _RDP_UPDATE_PDU
464    
465  } RDP_UPDATE_PDU;  } RDP_UPDATE_PDU;
466    
467  #define RDP_ORDER_STANDARD  1  #define RDP_ORDER_STANDARD   0x01
468  #define RDP_ORDER_SECONDARY 2  #define RDP_ORDER_SECONDARY  0x02
469  #define RDP_ORDER_BOUNDS    4  #define RDP_ORDER_BOUNDS     0x04
470  #define RDP_ORDER_CHANGE    8  #define RDP_ORDER_CHANGE     0x08
471  #define RDP_ORDER_DELTA     16  #define RDP_ORDER_DELTA      0x10
472  #define RDP_ORDER_REPEAT    64  #define RDP_ORDER_LASTBOUNDS 0x20
473    #define RDP_ORDER_SMALL      0x40
474    #define RDP_ORDER_TINY       0x80
475    
476  enum RDP_ORDER_TYPE  enum RDP_ORDER_TYPE
477  {  {
478          RDP_ORDER_OPAQUE_RECT = 10,          RDP_ORDER_DESTBLT = 0,
479          RDP_ORDER_MEMBLT = 13          RDP_ORDER_PATBLT = 1,
480            RDP_ORDER_SCREENBLT = 2,
481            RDP_ORDER_LINE = 9,
482            RDP_ORDER_RECT = 10,
483            RDP_ORDER_DESKSAVE = 11,
484            RDP_ORDER_MEMBLT = 13,
485            RDP_ORDER_TRIBLT = 14,
486            RDP_ORDER_TEXT2 = 27
487  };  };
488    
489  enum RDP_SECONDARY_ORDER_TYPE  enum RDP_SECONDARY_ORDER_TYPE
490  {  {
491          RDP_ORDER_BMPCACHE = 2          RDP_ORDER_RAW_BMPCACHE = 0,
492            RDP_ORDER_COLCACHE = 1,
493            RDP_ORDER_BMPCACHE = 2,
494            RDP_ORDER_FONTCACHE = 3
495  };  };
496    
497  typedef struct _RDP_SECONDARY_ORDER  typedef struct _RDP_SECONDARY_ORDER
# Line 373  typedef struct _RDP_SECONDARY_ORDER Line 502  typedef struct _RDP_SECONDARY_ORDER
502    
503  } RDP_SECONDARY_ORDER;  } RDP_SECONDARY_ORDER;
504    
505  typedef struct _RDP_BITMAP_HEADER  typedef struct _RDP_RAW_BMPCACHE_ORDER
506    {
507            uint8 cache_id;
508            uint8 pad1;
509            uint8 width;
510            uint8 height;
511            uint8 bpp;
512            uint16 bufsize;
513            uint16 cache_idx;
514            uint8 *data;
515    
516    } RDP_RAW_BMPCACHE_ORDER;
517    
518    typedef struct _RDP_BMPCACHE_ORDER
519  {  {
520          uint8 cache_id;          uint8 cache_id;
521          uint8 pad1;          uint8 pad1;
# Line 386  typedef struct _RDP_BITMAP_HEADER Line 528  typedef struct _RDP_BITMAP_HEADER
528          uint16 size;          uint16 size;
529          uint16 row_size;          uint16 row_size;
530          uint16 final_size;          uint16 final_size;
531            uint8 *data;
532    
533    } RDP_BMPCACHE_ORDER;
534    
535    #define MAX_GLYPH 32
536    
537    typedef struct _RDP_FONT_GLYPH
538    {
539            uint16 character;
540            uint16 unknown;
541            uint16 baseline;
542            uint16 width;
543            uint16 height;
544            uint8 data[MAX_GLYPH];
545    
546    } RDP_FONT_GLYPH;
547    
548    #define MAX_GLYPHS 256
549    
550    typedef struct _RDP_FONTCACHE_ORDER
551    {
552            uint8 font;
553            uint8 nglyphs;
554            RDP_FONT_GLYPH glyphs[MAX_GLYPHS];
555    
556    } RDP_FONTCACHE_ORDER;
557    
558    typedef struct _RDP_COLCACHE_ORDER
559    {
560            uint8 cache_id;
561            COLOURMAP map;
562    
563  } RDP_BITMAP_HEADER;  } RDP_COLCACHE_ORDER;
564    
565  #define RDP_POINTER_MOVE        3  #define RDP_POINTER_MOVE        3
566    
567  typedef struct _RDP_POINTER  typedef struct _RDP_POINTER_PDU
568  {  {
569          uint16 message;          uint16 message;
570          uint16 pad;          uint16 pad;
571          uint16 x;          uint16 x;
572          uint16 y;          uint16 y;
573    
574  } RDP_POINTER;  } RDP_POINTER_PDU;
575    

Legend:
Removed from v.8  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.26