2
Copyright (c) 2009 Jay Sorg
4
Permission is hereby granted, free of charge, to any person obtaining a
5
copy of this software and associated documentation files (the "Software"),
6
to deal in the Software without restriction, including without limitation
7
the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
and/or sell copies of the Software, and to permit persons to whom the
9
Software is furnished to do so, subject to the following conditions:
11
The above copyright notice and this permission notice shall be included
12
in all copies or substantial portions of the Software.
14
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20
DEALINGS IN THE SOFTWARE.
22
these are the types needed for the ui interface
23
self contained file, requires no other includes
27
#ifndef __CONSTANTS_VCHAN_H
28
#define __CONSTANTS_VCHAN_H
30
#define CHANNEL_FLAG_FIRST 0x01
31
#define CHANNEL_FLAG_LAST 0x02
32
#define CHANNEL_FLAG_ONLY (CHANNEL_FLAG_FIRST | CHANNEL_FLAG_LAST)
33
#define CHANNEL_FLAG_MIDDLE 0
34
#define CHANNEL_FLAG_FAIL 0x100
35
#define CHANNEL_FLAG_SHOW_PROTOCOL 0x10
36
#define CHANNEL_FLAG_SUSPEND 0x20
37
#define CHANNEL_FLAG_RESUME 0x40
39
#define CHANNEL_OPTION_INITIALIZED 0x80000000
40
#define CHANNEL_OPTION_ENCRYPT_RDP 0x40000000
41
#define CHANNEL_OPTION_ENCRYPT_SC 0x20000000
42
#define CHANNEL_OPTION_ENCRYPT_CS 0x10000000
43
#define CHANNEL_OPTION_PRI_HIGH 0x08000000
44
#define CHANNEL_OPTION_PRI_MED 0x04000000
45
#define CHANNEL_OPTION_PRI_LOW 0x02000000
46
#define CHANNEL_OPTION_COMPRESS_RDP 0x00800000
47
#define CHANNEL_OPTION_COMPRESS 0x00400000
48
#define CHANNEL_OPTION_SHOW_PROTOCOL 0x00200000
50
#define CHANNEL_MAX_COUNT 30
52
#define CHANNEL_NAME_LEN 7
54
#define CHANNEL_CHUNK_LENGTH 1600