2 rdesktop: A Remote Desktop Protocol client.
4 Copyright (C) Matthew Chapman 1999-2002
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.
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.
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.
28 typedef unsigned char uint8;
29 typedef signed char sint8;
30 typedef unsigned short uint16;
31 typedef signed short sint16;
32 typedef unsigned int uint32;
33 typedef signed int sint32;
35 typedef void *HBITMAP;
37 typedef void *HCOLOURMAP;
38 typedef void *HCURSOR;
40 typedef struct _COLOURENTRY
49 typedef struct _COLOURMAP
57 typedef struct _BOUNDS
86 typedef struct _FONTGLYPH
97 typedef struct _DATABLOB
105 typedef struct _key_translation
112 typedef struct _VCHANNEL
118 void (*process) (STREAM);
122 #define MAX_CBSIZE 256
129 uint32 nSamplesPerSec;
130 uint32 nAvgBytesPerSec;
132 uint16 wBitsPerSample;
134 uint8 cb[MAX_CBSIZE];
138 typedef uint32 NTSTATUS;
139 typedef uint32 HANDLE;
141 typedef struct _DEVICE_FNS
143 NTSTATUS(*create) (HANDLE * handle);
144 NTSTATUS(*close) (HANDLE handle);
145 NTSTATUS(*read) (HANDLE handle, uint8 * data, uint32 length, uint32 * result);
146 NTSTATUS(*write) (HANDLE handle, uint8 * data, uint32 length, uint32 * result);
147 NTSTATUS(*device_control) (HANDLE handle, uint32 request, STREAM in, STREAM out);