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.

219 lines
4.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000 - 2001.
  5. //
  6. // File: headers.h
  7. //
  8. // Contents: Master include file
  9. //
  10. // History: 07-26-2001 Hiteshr Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef __HEADERS_HXX_
  14. #define __HEADERS_HXX_
  15. //
  16. // We have local variables for the express purpose of ASSERTion.
  17. // when compiling retail, those assertions disappear, leaving our locals
  18. // as unreferenced.
  19. //
  20. #ifndef DBG
  21. #pragma warning (disable: 4189 4100)
  22. #endif
  23. #define STRICT
  24. #include "nt.h"
  25. #include "ntdef.h"
  26. #include "ntrtl.h"
  27. #include "nturtl.h"
  28. #include "seopaque.h" // RtlObjectAceSid, etc.
  29. #define NT_INCLUDED
  30. #undef ASSERT
  31. #undef ASSERTMSG
  32. //
  33. // C++ RTTI
  34. //
  35. #include "typeinfo.h"
  36. #define IS_CLASS(x,y) (typeid(x) == typeid(y))
  37. //
  38. // MFC Headers
  39. //
  40. #include "afxwin.h"
  41. #include "afxdisp.h"
  42. #include "afxdlgs.h"
  43. #include "afxcmn.h"
  44. #include "afxtempl.h"
  45. #include "prsht.h"
  46. //
  47. //ATL Headers
  48. //
  49. #include <atlbase.h>
  50. //
  51. //Directory Service
  52. //
  53. #include <dsgetdc.h> // DsGetDcName
  54. #include <dsrole.h> // DsRoleGetPrimaryDomainInformation
  55. // Downlevel networking and security
  56. #include <ntlsa.h> // PLSA_HANDLE
  57. #include <lmaccess.h> // required by lmapibuf.h
  58. #include <lmapibuf.h> // NetApiBufferFree
  59. #include "winldap.h"
  60. #include "Ntdsapi.h"
  61. #define SECURITY_WIN32
  62. #include <security.h> // TranslateName
  63. #include <lm.h> // NetApiBufferFree
  64. #include "sddl.h" //ConvertStringSidToSid
  65. #include "iads.h"
  66. #include <objsel.h> // DS Object Picker
  67. //
  68. //RoleManager Snapin Include File
  69. //
  70. #include "dllmain.h"
  71. //
  72. //More ATL Headers. They need to be after dllmain.h as
  73. //they require _Module object
  74. //
  75. #include <atlcom.h>
  76. /*
  77. * Define/include the stuff we need for WTL::CImageList. We need prototypes
  78. * for IsolationAwareImageList_Read and IsolationAwareImageList_Write here
  79. * because commctrl.h only declares them if __IStream_INTERFACE_DEFINED__
  80. * is defined. __IStream_INTERFACE_DEFINED__ is defined by objidl.h, which
  81. * we can't include before including afx.h because it ends up including
  82. * windows.h, which afx.h expects to include itself. Ugh.
  83. */
  84. HIMAGELIST WINAPI IsolationAwareImageList_Read(LPSTREAM pstm);
  85. BOOL WINAPI IsolationAwareImageList_Write(HIMAGELIST himl,LPSTREAM pstm);
  86. #define _WTL_NO_AUTOMATIC_NAMESPACE
  87. #include <atlapp.h>
  88. #include <atlwin.h>
  89. #include <atlctrls.h>
  90. #include "Dsclient.h"
  91. //
  92. // MMC Headers
  93. //
  94. #include "mmc.h"
  95. #include "shlobjp.h"
  96. //
  97. //Fusion
  98. //
  99. #include <shfusion.h>
  100. //
  101. // Version info
  102. //
  103. #include <ntverp.h>
  104. //
  105. //Role Based Authorization Header file
  106. //
  107. #include <initguid.h>
  108. #include "azroles.h"
  109. //
  110. // Standard Template Library
  111. //
  112. // STL won't build at warning level 4, bump it down to 3
  113. #pragma warning(push,3)
  114. //#include <memory>
  115. #include <vector>
  116. #include <map>
  117. #include <set>
  118. #include <list>
  119. #pragma warning(disable: 4702) // unreachable code
  120. #include <algorithm>
  121. #pragma warning(default: 4702) // unreachable code
  122. #include <utility>
  123. // resume compiling at level 4
  124. #pragma warning (pop)
  125. using namespace std;
  126. //
  127. //strsafe apis
  128. //
  129. #define STRSAFE_NO_DEPRECATE
  130. #include <strsafe.h>
  131. //contains some inline functions to ease the retrieval of ADsOpenObject
  132. //flags dealing with the signing and sealing of LDAP traffic.
  133. #include "ADsOpenFlags.h"
  134. //Framwork include file
  135. //
  136. #include "snapbase.h"
  137. //
  138. //RoleManager Snapin Include Files
  139. //
  140. #include "resource.h"
  141. #include "macro.h"
  142. #include "debug.h"
  143. #include "gstrings.h"
  144. #include "adinfo.h"
  145. #include "rolesnap.h"
  146. #include "rootdata.h"
  147. #include "comp.h"
  148. #include "compdata.h"
  149. #include "snapabout.h"
  150. #include "query.h"
  151. #include "SidCache.h"
  152. #include "EnumAz.h"
  153. #include "BaseAz.h"
  154. #include "AzImpl.cpp"
  155. #include "AdminManagerAz.h"
  156. #include "ContainerNodes.h"
  157. #include "AttrMap.h"
  158. #include "NewObjectDlg.h"
  159. #include "LeafNodes.h"
  160. #include "AddDlg.h"
  161. #include "util.h"
  162. #include "PropBase.h"
  163. ///////////////////////////////////////////////////////////////////
  164. // workaround macro for MFC bug
  165. // (see NTRAID 227193 and MFC "Monte Carlo" RAID db # 1034)
  166. #define FIX_THREAD_STATE_MFC_BUG() \
  167. AFX_MODULE_THREAD_STATE* pState = AfxGetModuleThreadState(); \
  168. CWinThread _dummyWinThread; \
  169. if (pState->m_pCurrentWinThread == NULL) \
  170. { \
  171. pState->m_pCurrentWinThread = &_dummyWinThread; \
  172. }
  173. //
  174. // This determines whether or not the NDNC functionality is enabled or disabled
  175. //
  176. #define USE_NDNC
  177. //Class For LinkControl
  178. #define LINKWINDOW_CLASSW L"Link Window"
  179. #endif