Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

181 lines
12 KiB

  1. /**INC+**********************************************************************/
  2. /* Header: aduxdefs.h */
  3. /* */
  4. /* Purpose: Optional defines used in the client */
  5. /* */
  6. /* Copyright(C) Microsoft Corporation 1997 */
  7. /* */
  8. /****************************************************************************/
  9. /** Changes:
  10. * $Log: Y:/logs/hydra/tshrclnt/inc/aducdefs.h_v $
  11. *
  12. * Rev 1.1 24 Sep 1997 14:29:30 AK
  13. * SFR1424: Rename adcgdefs.h for client
  14. **/
  15. /**INC-**********************************************************************/
  16. #ifndef _H_ADUCDEFS
  17. #define _H_ADUCDEFS
  18. /****************************************************************************/
  19. /* This header contains a list of all the optional defines used throughout */
  20. /* the project. To compile-in some optionally defined code, enable the */
  21. /* appropriate option here. Note that: */
  22. /* */
  23. /* - all defines must be declared and documented here. This is enforced */
  24. /* by moans. */
  25. /* - the list must be sorted alphabetically. This makes it easy to spot */
  26. /* duplicate defines. */
  27. /****************************************************************************/
  28. /****************************************************************************/
  29. /* DC_ANSI_TEXT_ORDERS enables support for encoded text orders where the */
  30. /* characters are in ANSI format. */
  31. /****************************************************************************/
  32. #ifndef OS_WINCE
  33. #define DC_ANSI_TEXT_ORDERS
  34. #endif // OS_WINCE
  35. /****************************************************************************/
  36. /* DC_LATENCY enables the latency test code in UH and OP. This code */
  37. /* generates a dummy key press (of the Ctrl key) whenever a large piece of */
  38. /* drawing is done. This allows the client processing time for a single */
  39. /* key stroke to be accurately measured using a network sniffer (e.g. */
  40. /* NetMon). In a typical situation Notepad is running in a remote session */
  41. /* (no other apps are running in the session) and the following occurs: */
  42. /* */
  43. /* - Notepad has the focus on the client. */
  44. /* - Press a key. */
  45. /* - Key-press is packaged by the client and sent on the wire. */
  46. /* - Server interprets packet and injects the key-press. */
  47. /* - Notepad does some processing which results in a character being */
  48. /* drawn on the screen. */
  49. /* - Server detects this drawing, packages it and sends it on the wire. */
  50. /* - Client receives update packets and processes them. */
  51. /* - The drawing operation results in a dummy key-press being generated. */
  52. /* - Dummy key-press is packaged by the client and sent on the wire. */
  53. /* */
  54. /* The time between the first update packet arriving and the dummy */
  55. /* key-press being sent is the total client processing time for a */
  56. /* key-press. */
  57. /****************************************************************************/
  58. #undef DC_LATENCY
  59. /* #define DC_LATENCY */
  60. /****************************************************************************/
  61. /* DC_LOOPBACK enables the NL loopback testing code. This stresses the */
  62. /* network layer by attempting to send a continual stream of packets with */
  63. /* incrementing size. The equivalent code on the server detects loopback */
  64. /* packets and reflects them straight back to the client where they are */
  65. /* compared to ensure that they have not been corrupted by the round trip. */
  66. /****************************************************************************/
  67. #undef DC_LOOPBACK
  68. /* #define DC_LOOPBACK */
  69. /****************************************************************************/
  70. /* Code within DC_NLTEST is used solely for testing the network layer. It */
  71. /* consists of: */
  72. /* */
  73. /* - a modification to TD_Recv so that it only ever tries to retrieve a */
  74. /* single byte from WinSock regardless of the amount of data that the */
  75. /* caller to TD_Recv asks for. This stresses the common failure path */
  76. /* within NL where processing of a packet has to be temporarily */
  77. /* suspended until more data arrives. */
  78. /* - random failure of NL_GetBuffer. This stresses the whole of the */
  79. /* client by simulating network layer back-pressure. */
  80. /* */
  81. /****************************************************************************/
  82. #undef DC_NLTEST
  83. /* #define DC_NLTEST */
  84. /****************************************************************************/
  85. /* DC_SERVER_ORDERS_ONLY compiles the client using just the T.128 orders */
  86. /* that the server sends (i.e. removes unused T.128 orders). */
  87. /****************************************************************************/
  88. /* #undef DC_SERVER_ORDERS_ONLY */
  89. #define DC_SERVER_ORDERS_ONLY
  90. /****************************************************************************/
  91. /* Defining DC_PERF enables the timing code which enables the time spent */
  92. /* in several key functions to be easily determined. */
  93. /****************************************************************************/
  94. #undef DC_PERF
  95. /* #define DC_PERF */
  96. /****************************************************************************/
  97. /* Defining SL_UNICODE_PROTOCOL enables code to send security package names */
  98. /* in Unicode, rather than ANSI, format. */
  99. /****************************************************************************/
  100. #undef SL_UNICODE_PROTOCOL
  101. /* #define SL_UNICODE_PROTOCOL */
  102. /****************************************************************************/
  103. /* The following flags are defined elsewehere - for example in the build */
  104. /* scripts. They are placed here to enable moans to detect legal defines - */
  105. /* the moans use '/* FLAG:' to find these names. */
  106. /* */
  107. /* FLAG: OS_WIN16 */
  108. /* - flag to indicate a Win16 build */
  109. /* */
  110. /* FLAG: OS_WIN32 */
  111. /* - flag to indicate a Win32 build */
  112. /* */
  113. /* FLAG: OS_WINDOWS */
  114. /* - flag to indicate a Windows build */
  115. /* */
  116. /* FLAG: DC_DEBUG */
  117. /* - flag to indicate a debug build */
  118. /* */
  119. /* FLAG: DC_DEFINE_GLOBAL_DATA */
  120. /* - used in aglobal.c to define global data */
  121. /* */
  122. /* FLAG: UNICODE */
  123. /* - Windows Unicode option */
  124. /* */
  125. /* FLAG: HIPROF */
  126. /* - HiProf profiler build */
  127. /* */
  128. /****************************************************************************/
  129. /****************************************************************************/
  130. /* The following flags are used in the server code. */
  131. /* FLAG: CH_NO_COUNT */
  132. /* FLAG: COMP_STATS */
  133. /* FLAG: DC_FIXED_CODE_MODULE */
  134. /* FLAG: DC_INCLUDE_DATA */
  135. /* FLAG: DC_INCL_PROTOTYPES */
  136. /* FLAG: DC_INCL_TYPEDEFS */
  137. /* FLAG: DC_INIT_DATA */
  138. /* FLAG: DEBUG_EVICTION_LIST */
  139. /* FLAG: DIAGNOSE_BOUNDS */
  140. /* FLAG: DITHER_MONO_CURSORS */
  141. /* FLAG: DLL_COREP */
  142. /* FLAG: DLL_DISP */
  143. /* FLAG: DLL_WD */
  144. /* FLAG: GIN_ACCEPT_INVITES */
  145. /* FLAG: HYDRA */
  146. /* FLAG: NOT_SERVICE */
  147. /* FLAG: ORDER_TRACE */
  148. /* FLAG: QUERY_THROUGHPUT */
  149. /* FLAG: RC_INVOKED */
  150. /* FLAG: REMOVE_LINEAR */
  151. /* FLAG: SNI_ASSERT */
  152. /* FLAG: SNI_ASSERT */
  153. /* FLAG: TRC_ENABLE_ALT */
  154. /* FLAG: TRC_ENABLE_DBG */
  155. /* FLAG: TRC_ENABLE_NRM */
  156. /* FLAG: TRC_GROUP */
  157. /* FLAG: TRC_TEST_LEVEL */
  158. /* FLAG: V1_COMPRESSION */
  159. /* FLAG: VER_APPSERV */
  160. /* FLAG: VER_CPP */
  161. /* FLAG: __cplusplus */
  162. /* FLAG: USE_HET */
  163. /* FLAG: USE_DS */
  164. /* FLAG: USE_AWC */
  165. /* FLAG: USE_FULL_CA */
  166. /* FLAG: CA_MULTIPLE_CLIENTS */
  167. /* */
  168. /****************************************************************************/
  169. #endif /* _H_ADUCDEFS */