Home | History | Annotate | Download | only in include
      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 #ifndef _H_PCHANNEL
      7 #define _H_PCHANNEL
      8 
      9 #define CHANNEL_CHUNK_LENGTH 1600
     10 
     11 #define CHANNEL_PDU_LENGTH (CHANNEL_CHUNK_LENGTH + sizeof(CHANNEL_PDU_HEADER))
     12 
     13 #define CHANNEL_FLAG_FIRST 0x01
     14 #define CHANNEL_FLAG_LAST 0x02
     15 #define CHANNEL_FLAG_ONLY (CHANNEL_FLAG_FIRST | CHANNEL_FLAG_LAST)
     16 #define CHANNEL_FLAG_MIDDLE 0
     17 #define CHANNEL_FLAG_FAIL 0x100
     18 #define CHANNEL_FLAG_SHOW_PROTOCOL 0x10
     19 #define CHANNEL_FLAG_SUSPEND 0x20
     20 #define CHANNEL_FLAG_RESUME 0x40
     21 
     22 #define CHANNEL_OPTION_INITIALIZED 0x80000000
     23 #define CHANNEL_OPTION_ENCRYPT_RDP 0x40000000
     24 #define CHANNEL_OPTION_ENCRYPT_SC 0x20000000
     25 #define CHANNEL_OPTION_ENCRYPT_CS 0x10000000
     26 #define CHANNEL_OPTION_PRI_HIGH 0x08000000
     27 #define CHANNEL_OPTION_PRI_MED 0x04000000
     28 #define CHANNEL_OPTION_PRI_LOW 0x02000000
     29 #define CHANNEL_OPTION_COMPRESS_RDP 0x00800000
     30 #define CHANNEL_OPTION_COMPRESS 0x00400000
     31 #define CHANNEL_OPTION_SHOW_PROTOCOL 0x00200000
     32 
     33 #define CHANNEL_MAX_COUNT 30
     34 #define CHANNEL_NAME_LEN 7
     35 
     36 typedef struct tagCHANNEL_DEF {
     37   char name[CHANNEL_NAME_LEN + 1];
     38   ULONG options;
     39 } CHANNEL_DEF,*PCHANNEL_DEF,**PPCHANNEL_DEF;
     40 
     41 typedef struct tagCHANNEL_PDU_HEADER {
     42   UINT32 length;
     43   UINT32 flags;
     44 } CHANNEL_PDU_HEADER,*PCHANNEL_PDU_HEADER;
     45 #endif
     46