1 |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
3 |
Common data types |
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 |
typedef int BOOL; |
22 |
|
23 |
#ifndef True |
24 |
#define True (1) |
25 |
#define False (0) |
26 |
#endif |
27 |
|
28 |
typedef unsigned char uint8; |
29 |
typedef unsigned short uint16; |
30 |
typedef unsigned int uint32; |
31 |
|
32 |
typedef void *HBITMAP; |
33 |
typedef void *HGLYPH; |
34 |
typedef void *HCOLOURMAP; |
35 |
|
36 |
typedef struct _COLOURENTRY |
37 |
{ |
38 |
uint8 red; |
39 |
uint8 green; |
40 |
uint8 blue; |
41 |
|
42 |
} COLOURENTRY; |
43 |
|
44 |
typedef struct _COLOURMAP |
45 |
{ |
46 |
uint16 ncolours; |
47 |
COLOURENTRY *colours; |
48 |
|
49 |
} COLOURMAP; |
50 |
|
51 |
typedef struct _BOUNDS |
52 |
{ |
53 |
uint16 left; |
54 |
uint16 top; |
55 |
uint16 right; |
56 |
uint16 bottom; |
57 |
|
58 |
} BOUNDS; |
59 |
|
60 |
typedef struct _PEN |
61 |
{ |
62 |
uint8 style; |
63 |
uint8 width; |
64 |
uint8 colour; |
65 |
|
66 |
} PEN; |
67 |
|
68 |
typedef struct _BRUSH |
69 |
{ |
70 |
uint8 xorigin; |
71 |
uint8 yorigin; |
72 |
uint8 style; |
73 |
uint8 pattern[8]; |
74 |
|
75 |
} BRUSH; |
76 |
|
77 |
typedef struct _FONTGLYPH |
78 |
{ |
79 |
uint16 offset; |
80 |
uint16 baseline; |
81 |
uint16 width; |
82 |
uint16 height; |
83 |
HBITMAP pixmap; |
84 |
|
85 |
} FONTGLYPH; |
86 |
|
87 |
typedef struct _DATABLOB |
88 |
{ |
89 |
void *data; |
90 |
int size; |
91 |
|
92 |
} DATABLOB; |