Source code of Windows XP (NT5)
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.

92 lines
2.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 2000
  6. //
  7. // File: stdafx.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // stdafx.h : include file for standard system include files,
  11. // or project specific include files that are used frequently,
  12. // but are changed infrequently
  13. #if !defined(_STDAFX_H_INCLUDED_)
  14. #define _STDAFX_H_INCLUDED_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. #define STRICT
  19. #ifndef _WIN32_WINNT
  20. # define _WIN32_WINNT 0x0400
  21. #endif
  22. #define _ATL_APARTMENT_THREADED
  23. #define STRICT
  24. #include <nt.h>
  25. #include <ntdef.h>
  26. #include <ntrtl.h>
  27. #include <nturtl.h>
  28. #define NT_INCLUDED
  29. #undef ASSERT
  30. #undef ASSERTMSG
  31. #define _ATL_NO_UUIDOF
  32. #pragma warning(disable: 4100) // don't warn about unreferenced formal params (not all WMI interface params are used)
  33. #pragma warning(disable: 4127) // don't warn about conditional expression is constant
  34. #pragma warning(disable: 4514) // don't warn about unreferenced inline removal (ATL)
  35. #pragma warning(disable: 4505) // don't warn about unreferenced local function (ATL)
  36. #pragma warning(push, 3) // avoid warnings from system headers when compiling at W4
  37. #include <afx.h>
  38. #include <atlbase.h>
  39. //You may derive a class from CComModule and use it if you want to override
  40. //something, but do not change the name of _Module
  41. extern CComModule _Module;
  42. #include <atlcom.h>
  43. #include <vector>
  44. using namespace std;
  45. #include <malloc.h>
  46. #include <process.h>
  47. #include <wbemprov.h>
  48. #include <ntdsapi.h>
  49. #include <ntlsa.h>
  50. #include <lm.h>
  51. #include <dsgetdc.h>
  52. #include <sddl.h>
  53. #include <iads.h> // IADsPathname
  54. #pragma warning(pop) // end: avoid warnings from system headers when compiling at W4
  55. ///////////////////////////////////////////
  56. // ASSERT's and TRACE's without debug CRT's
  57. #if defined (DBG)
  58. #if !defined (_DEBUG)
  59. #define _USE_ADMINPRV_TRACE
  60. #define _USE_ADMINPRV_ASSERT
  61. #define _USE_ADMINPRV_TIMER
  62. #endif
  63. #endif
  64. #define ADMINPRV_COMPNAME L"TrustMon"
  65. #include "dbg.h"
  66. ///////////////////////////////////////////
  67. #include "common.h"
  68. #include "trust.h"
  69. #include "domain.h"
  70. #include "TrustPrv.h"
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(_STDAFX_H_INCLUDED_)