source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/pchannel.h@ 1169

Last change on this file since 1169 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 1.7 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7#ifndef _H_PCHANNEL
8#define _H_PCHANNEL
9
10#include <winapifamily.h>
11
12#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
13
14#if NTDDI_VERSION >= NTDDI_XP
15
16#define CHANNEL_CHUNK_LENGTH 1600
17#define CHANNEL_BUFFER_SIZE 65535
18
19#define CHANNEL_PDU_LENGTH (CHANNEL_CHUNK_LENGTH + sizeof(CHANNEL_PDU_HEADER))
20
21#define CHANNEL_FLAG_FIRST 0x01
22#define CHANNEL_FLAG_LAST 0x02
23#define CHANNEL_FLAG_ONLY (CHANNEL_FLAG_FIRST | CHANNEL_FLAG_LAST)
24#define CHANNEL_FLAG_MIDDLE 0
25#define CHANNEL_FLAG_FAIL 0x100
26#define CHANNEL_FLAG_SHOW_PROTOCOL 0x10
27#define CHANNEL_FLAG_SUSPEND 0x20
28#define CHANNEL_FLAG_RESUME 0x40
29
30#define CHANNEL_OPTION_INITIALIZED 0x80000000
31#define CHANNEL_OPTION_ENCRYPT_RDP 0x40000000
32#define CHANNEL_OPTION_ENCRYPT_SC 0x20000000
33#define CHANNEL_OPTION_ENCRYPT_CS 0x10000000
34#define CHANNEL_OPTION_PRI_HIGH 0x08000000
35#define CHANNEL_OPTION_PRI_MED 0x04000000
36#define CHANNEL_OPTION_PRI_LOW 0x02000000
37#define CHANNEL_OPTION_COMPRESS_RDP 0x00800000
38#define CHANNEL_OPTION_COMPRESS 0x00400000
39#define CHANNEL_OPTION_SHOW_PROTOCOL 0x00200000
40#define CHANNEL_OPTION_REMOTE_CONTROL_PERSISTENT 0x00100000
41
42#define CHANNEL_MAX_COUNT 30
43#define CHANNEL_NAME_LEN 7
44
45typedef struct tagCHANNEL_DEF {
46 char name[CHANNEL_NAME_LEN + 1];
47 ULONG options;
48} CHANNEL_DEF,*PCHANNEL_DEF,**PPCHANNEL_DEF;
49
50typedef struct tagCHANNEL_PDU_HEADER {
51 UINT32 length;
52 UINT32 flags;
53} CHANNEL_PDU_HEADER,*PCHANNEL_PDU_HEADER;
54
55#endif /* (NTDDI_VERSION >= NTDDI_XP) */
56
57#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
58
59#endif /* _H_PCHANNEL */
Note: See TracBrowser for help on using the repository browser.