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.

107 lines
2.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // StdAfx.h
  7. //
  8. // Description:
  9. // Pre-compiled header file.
  10. //
  11. // Author:
  12. // Charles Stacy Harris (stacyh) 28-Feb-1997
  13. // Galen Barbee (galenb) July 1998
  14. //
  15. // Revision History:
  16. // July 1998 GalenB Maaaaaajjjjjjjjjoooooorrrr clean up
  17. //
  18. // Notes:
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #ifndef _STDAFX_H_
  22. #define _STDAFX_H_
  23. #if _MSC_VER >= 1000
  24. #pragma once
  25. #endif // _MSC_VER >= 1000
  26. #define STRICT
  27. #include <nt.h>
  28. #include <ntrtl.h>
  29. #include <nturtl.h>
  30. #include <windows.h>
  31. #include <stdio.h>
  32. #include <stdlib.h>
  33. //
  34. // Enable cluster debug reporting
  35. //
  36. #if DBG
  37. #define CLRTL_INCLUDE_DEBUG_REPORTING
  38. #endif // DBG
  39. #if CLUSAPI_VERSION >= 0x0500
  40. #include "ClRtlDbg.h"
  41. #define ASSERT _CLRTL_ASSERTE
  42. #define ATLASSERT ASSERT
  43. #else
  44. #undef ASSERT
  45. #define ASSERT _ASSERTE
  46. #endif
  47. #define _ATL_APARTMENT_THREADED
  48. #ifdef _DEBUG
  49. #define _ATL_DEBUG_QI
  50. #define _ATL_DEBUG_REFCOUNT
  51. #define _CRTDBG_MAP_ALLOC
  52. #endif
  53. #ifdef _ATL_DEBUG_REFCOUNT
  54. #define Release _DebugRelease
  55. #define AddRef _DebugAddRef
  56. #endif
  57. #include <atlbase.h>
  58. extern CComModule _Module;
  59. #include <atlcom.h>
  60. #include <comdef.h>
  61. #include <vector>
  62. #include <clusapi.h>
  63. extern "C"
  64. {
  65. #include <lmaccess.h>
  66. #include <lmwksta.h>
  67. #include <lmapibuf.h>
  68. #include <lm.h>
  69. #include <ntsecapi.h>
  70. }
  71. #if CLUSAPI_VERSION >= 0x0500
  72. #include <DsGetDC.h>
  73. #include <cluswrap.h>
  74. #else
  75. #include "cluswrap.h"
  76. #endif // CLUSAPI_VERSION >= 0x0500
  77. #include "InterfaceVer.h"
  78. #include "SmartPointer.h"
  79. #include "SmartHandle.h"
  80. #include "SupportErrorInfo.h"
  81. #include "msclus.h"
  82. HRESULT HrGetCluster( OUT ISCluster ** ppCluster, IN ISClusRefObject * pClusRefObject );
  83. void ClearIDispatchEnum( IN OUT CComVariant ** ppvarVect );
  84. void ClearVariantEnum( IN OUT CComVariant ** ppvarVect );
  85. #include "TemplateFuncs.h"
  86. #endif // _STDAFX_H_