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.

156 lines
3.8 KiB

  1. #ifndef _PRIV_H_
  2. #define _PRIV_H_
  3. // This is a reverse integration test
  4. // Testing the branches. - lamadio
  5. /*****************************************************************************
  6. *
  7. * Global Includes
  8. *
  9. *****************************************************************************/
  10. #define WIN32_LEAN_AND_MEAN
  11. #define NOIME
  12. #define NOSERVICE
  13. #define _OLEAUT32_ // get DECLSPEC_IMPORT stuff right, we are defing these
  14. #define _FSMENU_ // for DECLSPEC_IMPORT
  15. #define _WINMM_ // for DECLSPEC_IMPORT in mmsystem.h
  16. #define _SHDOCVW_ // for DECLSPEC_IMPORT in shlobj.h
  17. #define _WINX32_ // get DECLSPEC_IMPORT stuff right for WININET API
  18. #define _URLCACHEAPI_ // get DECLSPEC_IMPORT stuff right for wininet urlcache
  19. #define STRICT
  20. #define POST_IE5_BETA
  21. //#include <w95wraps.h>
  22. #include <windows.h>
  23. #ifdef RC_INVOKED /* Define some tags to speed up rc.exe */
  24. #define __RPCNDR_H__ /* Don't need RPC network data representation */
  25. #define __RPC_H__ /* Don't need RPC */
  26. #include <oleidl.h> /* Get the DROPEFFECT stuff */
  27. #define _OLE2_H_ /* But none of the rest */
  28. #define _WINDEF_
  29. #define _WINBASE_
  30. #define _WINGDI_
  31. #define NONLS
  32. #define _WINCON_
  33. #define _WINREG_
  34. #define _WINNETWK_
  35. #define _INC_COMMCTRL
  36. #define _INC_SHELLAPI
  37. #define _SHSEMIP_H_ /* _UNDOCUMENTED_: Internal header */
  38. #else // RC_INVOKED
  39. #include <windowsx.h>
  40. #endif // RC_INVOKED
  41. #ifdef __cplusplus
  42. extern "C" { /* Assume C declarations for C++. */
  43. #endif /* __cplusplus */
  44. #ifdef __cplusplus
  45. } /* End of extern "C" {. */
  46. #endif /* __cplusplus */
  47. #include "resource.h"
  48. #define _FIX_ENABLEMODELESS_CONFLICT // for shlobj.h
  49. //WinInet need to be included BEFORE ShlObjp.h
  50. #include <wininet.h>
  51. #include <urlmon.h>
  52. #include <shlobj.h>
  53. #include <exdisp.h>
  54. #include <objidl.h>
  55. #include <shlwapi.h>
  56. #include <shlwapip.h>
  57. #include <shellapi.h>
  58. #include <shsemip.h>
  59. #include <crtfree.h>
  60. #include <ole2ver.h>
  61. #include <olectl.h>
  62. #include <shellp.h>
  63. #include <shdocvw.h>
  64. #include <shguidp.h>
  65. #include <isguids.h>
  66. #include <shdguid.h>
  67. #include <mimeinfo.h>
  68. #include <hlguids.h>
  69. #include <mshtmdid.h>
  70. #include <dispex.h> // IDispatchEx
  71. #include <perhist.h>
  72. #include <help.h>
  73. #include <krnlcmn.h> // GetProcessDword
  74. #define DISALLOW_Assert // Force to use ASSERT instead of Assert
  75. #define DISALLOW_DebugMsg // Force to use TraceMsg instead of DebugMsg
  76. #include <debug.h>
  77. #include <urlhist.h>
  78. #include <regstr.h> // for REGSTR_PATH_EXPLORE
  79. #define USE_SYSTEM_URL_MONIKER
  80. #include <urlmon.h>
  81. //#include <winineti.h> // Cache APIs & structures
  82. #include <inetreg.h>
  83. #define _INTSHCUT_ // get DECLSPEC_IMPORT stuff right for INTSHCUT.h
  84. #include <intshcut.h>
  85. #include <propset.h> // BUGBUG (scotth): remove this once OLE adds an official header
  86. #define HLINK_NO_GUIDS
  87. #include <hlink.h>
  88. #include <hliface.h>
  89. #include <docobj.h>
  90. #include <ccstock.h>
  91. #include <port32.h>
  92. #include <commctrl.h>
  93. #include <comctrlp.h>
  94. #include <shfusion.h>
  95. // General flag macros
  96. //
  97. #define SetFlag(obj, f) do {obj |= (f);} while (0)
  98. #define ToggleFlag(obj, f) do {obj ^= (f);} while (0)
  99. #define ClearFlag(obj, f) do {obj &= ~(f);} while (0)
  100. #define IsFlagSet(obj, f) (BOOL)(((obj) & (f)) == (f))
  101. #define IsFlagClear(obj, f) (BOOL)(((obj) & (f)) != (f))
  102. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  103. #ifdef DEBUG
  104. #define DEBUG_CODE(x) x
  105. #else // DEBUG
  106. #define DEBUG_CODE(x)
  107. #endif // DEBUG
  108. extern HINSTANCE g_hinst;
  109. #define HINST_THISDLL g_hinst
  110. void DllAddRef(void);
  111. void DllRelease(void);
  112. #define TF_LIFE 0x10000000
  113. #define TF_ALLOCCATIONS 0x20000000
  114. HRESULT CFactory_Create(REFCLSID rclsid, REFIID riid, LPVOID * ppvObj);
  115. #endif // _PRIV_H_