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.

96 lines
2.1 KiB

  1. // ***************************************************************************
  2. // Copyright (C) 2000- Microsoft Corporation.
  3. // @File: stdafx.h
  4. //
  5. // PURPOSE:
  6. //
  7. // The precompiled header in the NT source code.
  8. //
  9. // NOTES:
  10. //
  11. // HISTORY:
  12. //
  13. // @Version: Whistler/Shiloh
  14. // 76910 SRS 08/08/01 Rollforward from VSS snapshot
  15. // 68228 12/05/00 ntsnap work
  16. // 66601 srs 10/05/00 NTSNAP improvements
  17. //
  18. //
  19. // @EndHeader@
  20. // ***************************************************************************
  21. #include <memory>
  22. #ifndef __VSS_STDAFX_HXX__
  23. #define __VSS_STDAFX_HXX__
  24. #if _MSC_VER > 1000
  25. #pragma once
  26. #endif
  27. // Disable warning: 'identifier' : identifier was truncated to 'number' characters in the debug information
  28. //
  29. #ifdef DISABLE_4786
  30. #pragma warning(disable:4786)
  31. #endif
  32. //
  33. // C4290: C++ Exception Specification ignored
  34. //
  35. #pragma warning(disable:4290)
  36. //
  37. // C4511: copy constructor could not be generated
  38. //
  39. #pragma warning(disable:4511)
  40. //
  41. // Warning: ATL debugging turned off (BUG 250939)
  42. //
  43. // #ifdef _DEBUG
  44. // #define _ATL_DEBUG_INTERFACES
  45. // #define _ATL_DEBUG_QI
  46. // #define _ATL_DEBUG_REFCOUNT
  47. // #endif // _DEBUG
  48. #include <wtypes.h>
  49. #pragma warning( disable: 4201 ) // C4201: nonstandard extension used : nameless struct/union
  50. #include <winioctl.h>
  51. #pragma warning( default: 4201 ) // C4201: nonstandard extension used : nameless struct/union
  52. #include <winbase.h>
  53. #include <wchar.h>
  54. #include <string.h>
  55. #include <iostream>
  56. #include <fstream>
  57. #include <stdio.h>
  58. #include <process.h>
  59. #include <stdlib.h>
  60. #include <errno.h>
  61. // Enabling asserts in ATL and VSS
  62. #include "vs_assert.hxx"
  63. #include <oleauto.h>
  64. #include <stddef.h>
  65. #pragma warning( disable: 4127 ) // warning C4127: conditional expression is constant
  66. #include <atlconv.h>
  67. #include <atlbase.h>
  68. #include <sql.h>
  69. #include <sqlext.h>
  70. #include <sqltypes.h>
  71. #include <odbcss.h>
  72. #include "vs_inc.hxx"
  73. #include "sqlsnap.h"
  74. #include "sqlsnapi.h"
  75. #include <auto.h>
  76. #include "vssmsg.h"
  77. #endif