/[rdesktop]/sourceforge.net/trunk/rdesktop/misc.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

Contents of /sourceforge.net/trunk/rdesktop/misc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations)
Tue Jul 25 12:34:29 2000 UTC (23 years, 9 months ago) by matty
File MIME type: text/plain
File size: 1962 byte(s)
Committing some awesome progress I made while overseas - this commit
really embodies a huge number of changes. We are now able to talk quite
fluently to a French NT Terminal Server - in normal usage only minor
font issues remain (handling of TEXT2 order is not perfect).

The next major hurdle is encryption, and it will be quite a big hurdle
- there seems to be some quite nasty session key stuff.

1 /*
2 rdesktop: A Remote Desktop Protocol client.
3 Protocol services - RDP layer
4 Copyright (C) Matthew Chapman 1999-2000
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #define NUM_ELEMENTS(array) (sizeof(array) / sizeof(array[0]))
22 #define DEBUG(args...) fprintf(stderr, args);
23 #define ERROR(args...) fprintf(stderr, "ERROR: "args);
24 #define WARN(args...) fprintf(stderr, "WARNING: "args);
25 #define NOTIMP(args...) fprintf(stderr, "NOT IMPLEMENTED: "args);
26
27 #define ROP2_S(rop3) (rop3 & 0xf)
28 #define ROP2_P(rop3) ((rop3 & 0x3) | ((rop3 & 0x30) >> 2))
29
30 #define ROP2_COPY 0xc
31 #define ROP2_XOR 0x6
32 #define ROP2_AND 0x8
33 #define ROP2_OR 0xe
34
35 #define MAX_COLOURS 256
36
37 typedef struct _colourentry
38 {
39 uint8 blue;
40 uint8 green;
41 uint8 red;
42
43 } COLOURENTRY;
44
45 typedef struct _colourmap
46 {
47 uint16 ncolours;
48 COLOURENTRY colours[MAX_COLOURS];
49
50 } COLOURMAP;
51
52 typedef struct _bounds
53 {
54 uint16 left;
55 uint16 top;
56 uint16 right;
57 uint16 bottom;
58
59 } BOUNDS;
60
61 typedef struct _pen
62 {
63 uint8 style;
64 uint8 width;
65 uint8 colour;
66
67 } PEN;
68
69 typedef struct _brush
70 {
71 uint8 xorigin;
72 uint8 yorigin;
73 uint8 style;
74 uint8 pattern[8];
75
76 } BRUSH;
77
78 typedef struct _font_glyph
79 {
80 uint16 baseline;
81 uint16 width;
82 uint16 height;
83 HBITMAP pixmap;
84
85 } FONT_GLYPH;
86
87 typedef struct _blob
88 {
89 void *data;
90 int size;
91
92 } BLOB;

  ViewVC Help
Powered by ViewVC 1.1.26