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.

56 lines
1.5 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #if !defined(AFX_STDAFX_H__0FF1CBC9_6CFC_4664_9657_D877BD3FB341__INCLUDED_)
  5. #define AFX_STDAFX_H__0FF1CBC9_6CFC_4664_9657_D877BD3FB341__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define STRICT
  10. #ifndef _WIN32_WINNT
  11. #define _WIN32_WINNT 0x0400
  12. #endif
  13. #define _ATL_APARTMENT_THREADED
  14. #include <atlbase.h>
  15. //You may derive a class from CComModule and use it if you want to override
  16. //something, but do not change the name of _Module
  17. extern CComModule _Module;
  18. #include <atlcom.h>
  19. #include <wbemprov.h>
  20. #include <ntdsapi.h>
  21. #include <dsrole.h>
  22. #include <dsgetdc.h>
  23. #include <iads.h> // IADsPathname
  24. extern bool g_DoAssert;
  25. EXTERN_C const CLSID CLSID_ADReplProvider;
  26. #define ASSERT(f) if (g_DoAssert && !(f)) {_ASSERTE(false);}
  27. ///////////////////////////////////////////
  28. // ASSERT's and TRACE's without debug CRT's
  29. #if defined (DBG)
  30. #if !defined (_DEBUG)
  31. #define _USE_ADMINPRV_TRACE
  32. #define _USE_ADMINPRV_ASSERT
  33. #define _USE_ADMINPRV_TIMER
  34. #endif
  35. #endif
  36. #define ADMINPRV_COMPNAME L"AdReplPv"
  37. #include "dbg.h"
  38. ///////////////////////////////////////////
  39. #include "common.h"
  40. //{{AFX_INSERT_LOCATION}}
  41. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  42. #endif // !defined(AFX_STDAFX_H__0FF1CBC9_6CFC_4664_9657_D877BD3FB341__INCLUDED)