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.

97 lines
4.0 KiB

  1. #ifndef _SYSTEM_HPP_
  2. #define _SYSTEM_HPP_
  3. // Ruler
  4. // 1 2 3 4 5 6 7 8
  5. //345678901234567890123456789012345678901234567890123456789012345678901234567890
  6. /********************************************************************/
  7. /* */
  8. /* The standard system include files. */
  9. /* */
  10. /* The standard system include files contain various definitions */
  11. /* used throughout the system. */
  12. /* */
  13. /********************************************************************/
  14. #include <conio.h>
  15. #include <iostream.h>
  16. #include <stdarg.h>
  17. #include <stddef.h>
  18. #include <stdio.h>
  19. #include <stdlib.h>
  20. #include <malloc.h>
  21. #include <new.h>
  22. #include <process.h>
  23. #include <time.h>
  24. #include <winsock2.h>
  25. #include <windows.h>
  26. /********************************************************************/
  27. /* */
  28. /* Automatically set the debugging flag if needed. */
  29. /* */
  30. /* There are various standards for enabling dedugging code. */
  31. /* Here we translate on to the standard used in this */
  32. /* application. */
  33. /* */
  34. /********************************************************************/
  35. #ifdef _M_IX86
  36. #define ASSEMBLY_X86 1
  37. #endif
  38. #ifdef _DEBUG
  39. #define DEBUGGING 1
  40. #endif
  41. #ifdef UNICODE
  42. #undef CreateSemaphore
  43. #undef OutputDebugString
  44. #define CreateSemaphore CreateSemaphoreA
  45. #define OutputDebugString OutputDebugStringA
  46. #endif
  47. /********************************************************************/
  48. /* */
  49. /* Disable some Prefast warnings. Each was analyzed and found */
  50. /* to be harmless. */
  51. /* */
  52. /* Altering the rockall code will create a complicated and */
  53. /* risky merge with new source drops of rockall. */
  54. /* */
  55. /********************************************************************/
  56. #ifndef ALL_COMPLAINTS
  57. #pragma prefast(disable:244 246, "hiding outer scoped variables harmless")
  58. #endif
  59. /********************************************************************/
  60. /* */
  61. /* Automatically disable anoying warnings. */
  62. /* */
  63. /* Some of the VC compiler warning are not very helpful so */
  64. /* we disable them here. */
  65. /* */
  66. /********************************************************************/
  67. #ifndef ALL_COMPLAINTS
  68. #pragma warning( disable : 4073 )
  69. #pragma warning( disable : 4074 )
  70. #pragma warning( disable : 4097 )
  71. #pragma warning( disable : 4100 )
  72. #pragma warning( disable : 4121 )
  73. #pragma warning( disable : 4127 )
  74. #pragma warning( disable : 4291 )
  75. #pragma warning( disable : 4509 )
  76. #pragma warning( disable : 4511 )
  77. #pragma warning( disable : 4512 )
  78. #pragma warning( disable : 4514 )
  79. #pragma warning( disable : 4701 )
  80. #pragma warning( disable : 4702 )
  81. #pragma warning( disable : 4706 )
  82. #pragma warning( disable : 4710 )
  83. #pragma warning( disable : 4711 )
  84. #pragma warning( disable : 4800 )
  85. #endif
  86. #endif