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.

106 lines
2.6 KiB

  1. // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. //
  3. // _DAVPRS.H
  4. //
  5. // DAV parser precompiled header
  6. //
  7. //
  8. // Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
  9. //
  10. // Disable unnecessary (i.e. harmless) warnings
  11. //
  12. #pragma warning(disable:4100) // unref formal parameter (caused by STL templates)
  13. #pragma warning(disable:4127) // conditional expression is constant
  14. #pragma warning(disable:4201) // nameless struct/union
  15. #pragma warning(disable:4514) // unreferenced inline function
  16. #pragma warning(disable:4710) // (inline) function not expanded
  17. // Standard C/C++ headers
  18. //
  19. #include <malloc.h> // For _alloca declaration ONLY!
  20. #include <limits.h>
  21. // Windows headers
  22. //
  23. //$HACK!
  24. //
  25. // Define _WINSOCKAPI_ to keep windows.h from including winsock.h,
  26. // whose declarations would be redefined in winsock2.h,
  27. // which is included by iisextp.h,
  28. // which we include below!
  29. //
  30. #define _WINSOCKAPI_
  31. #include <windows.h>
  32. // IIS headers
  33. //
  34. #include <httpext.h>
  35. // Use pragmas to disable the specific level 4 warnings
  36. // that appear when we use the STL. One would hope our version of the
  37. // STL compiles clean at level 4, but alas it doesn't....
  38. #pragma warning(disable:4663) // C language, template<> syntax
  39. #pragma warning(disable:4244) // return conversion, data loss
  40. #pragma warning(disable:4786) // symbol truncated in debug info (turn this one off forever)
  41. // Put STL includes here
  42. #include <list>
  43. // Turn warnings back on
  44. #pragma warning(default:4663) // C language, template<> syntax
  45. #pragma warning(default:4244) // return conversion, data loss
  46. // Global DAV subsystem headers
  47. //
  48. #include <autoptr.h>
  49. #include <singlton.h>
  50. #include <align.h>
  51. #include <mem.h>
  52. #include <util.h>
  53. #include <except.h>
  54. #include <caldbg.h>
  55. #include <calrc.h>
  56. #include <davimpl.h>
  57. #include <davmb.h>
  58. #include <nonimpl.h>
  59. #include <ex\cnvt.h>
  60. #include <crc.h>
  61. #include <eventlog.h>
  62. #include <statcode.h>
  63. #include <sz.h>
  64. #include <etag.h>
  65. #include <synchro.h>
  66. #include <profile.h>
  67. #include "traces.h"
  68. // ------------------------------------------------------------------------
  69. //
  70. // CLASS CInst
  71. //
  72. // THE one, global instance declataion. Encapsulates both per process
  73. // and per thread instance information.
  74. //
  75. class CInstData;
  76. class CInst
  77. {
  78. HINSTANCE m_hinst;
  79. public:
  80. #ifdef MINIMAL_ISAPI
  81. HANDLE m_hfDummy;
  82. #endif
  83. // ACCESSORS
  84. //
  85. HINSTANCE Hinst() const { return m_hinst; }
  86. // MANIPULATORS
  87. //
  88. void PerProcessInit( HINSTANCE hinst );
  89. CInstData& GetInstData( const IEcb& ecb );
  90. };
  91. extern CInst g_inst;