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.

123 lines
3.3 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__3BFC9651_7A55_11D0_B928_00C04FD8D5B0__INCLUDED_)
  5. #define AFX_STDAFX_H__3BFC9651_7A55_11D0_B928_00C04FD8D5B0__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. //
  10. // Disable warnings that will fail in retail mode
  11. //
  12. #ifndef DBG
  13. #pragma warning (disable: 4189 4100)
  14. #endif // DBG
  15. #define STRICT
  16. extern "C"
  17. {
  18. #include <nt.h> // SE_TAKE_OWNERSHIP_PRIVILEGE, etc
  19. #include <ntrtl.h>
  20. #include <nturtl.h>
  21. }
  22. #undef ASSERT
  23. #undef ASSERTMSG
  24. #include <afxwin.h>
  25. #include <afxdisp.h>
  26. #include <afxtempl.h> // CTypedPtrList
  27. #include <afxdlgs.h> // CPropertyPage
  28. #include <activeds.h> // ADS Stuff
  29. #include <iadsp.h>
  30. #include <dsgetdc.h>
  31. #include <lm.h>
  32. #include <sddl.h>
  33. #include <ntdsapi.h>
  34. #include <ntldap.h>
  35. #include <aclui.h>
  36. #include <windowsx.h>
  37. #include <dssec.h> // private\inc
  38. #include <comstrm.h>
  39. // #define _WIN32_WINNT 0x0400
  40. #define _ATL_APARTMENT_THREADED
  41. #include "dbg.h"
  42. #include "mmc.h"
  43. #include "schmmgmt.h"
  44. #include "helpids.h"
  45. #include "guidhelp.h" // ExtractData
  46. EXTERN_C const CLSID CLSID_SchmMgmt;
  47. #include <atlbase.h>
  48. //You may derive a class from CComModule and use it if you want to override
  49. //something, but do not change the name of _Module
  50. extern CComModule _Module;
  51. #include <atlcom.h>
  52. #include <dscmn.h>
  53. #include <shlobj.h>
  54. #include <dsclient.h>
  55. #include <dsadminp.h> // DS Admin utilities
  56. #include "MyBasePathsInfo.h"
  57. //
  58. // Display context sensitive help
  59. //
  60. // This function is implemented in SchmUtil.cpp. Declared here due to the wide usage
  61. //
  62. BOOL
  63. ShowHelp( HWND hParent, WPARAM wParam, LPARAM lParam, const DWORD ids[], BOOL fContextMenuHelp );
  64. #ifdef _DEBUG
  65. #define SHOW_EXT_LDAP_MSG
  66. #endif //_DEBUG
  67. #ifndef BREAK_ON_FAILED_HRESULT
  68. #define BREAK_ON_FAILED_HRESULT(hr) \
  69. if (FAILED(hr)) \
  70. { \
  71. break; \
  72. }
  73. #endif // BREAK_ON_FAILED_HRESULT
  74. #ifndef ASSERT_BREAK_ON_FAILED_HRESULT
  75. #define ASSERT_BREAK_ON_FAILED_HRESULT(hr) \
  76. if (FAILED(hr)) \
  77. { \
  78. ASSERT( FALSE ); \
  79. break; \
  80. }
  81. #endif // ASSERT_BREAK_ON_FAILED_HRESULT
  82. #ifndef BREAK_ON_FAILED_HRESULT_AND_SET
  83. #define BREAK_ON_FAILED_HRESULT_AND_SET(hr,newHr) \
  84. if (FAILED(hr)) \
  85. { \
  86. hr = (newHr); \
  87. break; \
  88. }
  89. #endif // BREAK_ON_FAILED_HRESULT_AND_SET
  90. #ifndef NO_HELP
  91. #define NO_HELP (static_cast<DWORD>(-1))
  92. #endif //NO_HELP
  93. //{{AFX_INSERT_LOCATION}}
  94. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  95. #endif // !defined(AFX_STDAFX_H__3BFC9651_7A55_11D0_B928_00C04FD8D5B0__INCLUDED)