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.

79 lines
3.1 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. #ifndef ALL_COMPLAINTS
  48. /********************************************************************/
  49. /* */
  50. /* Automatically disable anoying warnings. */
  51. /* */
  52. /* Some of the VC compiler warning are not very helpful so */
  53. /* we disable them here. */
  54. /* */
  55. /********************************************************************/
  56. #pragma warning( disable : 4073 )
  57. #pragma warning( disable : 4100 )
  58. #pragma warning( disable : 4121 )
  59. #pragma warning( disable : 4127 )
  60. #pragma warning( disable : 4511 )
  61. #pragma warning( disable : 4512 )
  62. #pragma warning( disable : 4514 )
  63. #pragma warning( disable : 4701 )
  64. #pragma warning( disable : 4702 )
  65. #pragma warning( disable : 4706 )
  66. #pragma warning( disable : 4710 )
  67. #pragma warning( disable : 4711 )
  68. #pragma warning( disable : 4800 )
  69. #endif
  70. #endif