stdinc.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 3k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. //\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\
  2. //
  3. // Stdinc.h 
  4. //
  5. //   Contains the standard include files used by.cpp files in ineticon.  Most
  6. //   of the ineticon files will include this file.
  7. //
  8. //   History:
  9. //
  10. //       3/16/97  edwardp   Created.
  11. //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. //
  14. // Check for previous includes of this file.
  15. //
  16. #ifndef _STDINC_H_
  17. #define _STDINC_H_
  18. #ifdef UNICODE
  19. // This stuff must run on Win95
  20. #define _WIN32_WINDOWS      0x0400
  21. #ifndef WINVER
  22. #define WINVER              0x0400
  23. #endif
  24. #define _OLEAUT32_       // get DECLSPEC_IMPORT stuff right, we are defing these
  25. #define _BROWSEUI_       // define bruiapi as functions exported instead of imported
  26. #define _WINX32_         // get DECLSPEC_IMPORT stuff right for WININET API
  27. #define _URLCACHEAPI     // get DECLSPEC_IMPORT stuff right for WININET CACHE API
  28. #ifndef STRICT
  29. #define STRICT
  30. #endif
  31. //
  32. // Globaly defined includes.
  33. //
  34. //  
  35. //  Include <w95wraps.h> before anything else that messes with names.
  36. //  Although everybody gets the wrong name, at least it's *consistently*
  37. //  the wrong name, so everything links.
  38. //
  39. //  NOTE:  This means that while debugging you will see functions like
  40. //  CWindowImplBase__DefWindowProcWrapW when you expected to see
  41. //  CWindowImplBase__DefWindowProc.
  42. //
  43. #define POST_IE5_BETA // turn on post-split iedev stuff
  44. #endif
  45. #define _SHDOCVW_
  46. #ifdef UNICODE
  47. #include <w95wraps.h>
  48. #endif
  49. #include <windows.h>
  50. #include <ole2.h>
  51. #include <debug.h>     // From shellinc.
  52. #ifdef UNICODE
  53. #define _FIX_ENABLEMODELESS_CONFLICT  // for shlobj.h
  54. #endif
  55. #include <wininet.h>   // INTERNET_MAX_URL_LENGTH.  Must be before shlobjp.h!
  56. #include <shlobj.h>    // IShellFolder
  57. #include <shlobjp.h>   // IActiveDesktop
  58. #include <shsemip.h>   // ILClone, ILFree etc.
  59. #include <shellp.h>    // PDETAILSINFO
  60. #include <ccstock.h>   // From shellinc.
  61. #ifdef UNICODE
  62. #include <port32.h>
  63. #endif
  64. #include <urlmon.h>    // IPersistMoniker, IBindStatusCallback
  65. #ifdef UNICODE
  66. #include <winineti.h>    // Cache APIs & structures
  67. #endif
  68. #include <intshcut.h>  // IUniformResourceLocator
  69. #include <msxml.h>
  70. #include <iimgctx.h>   // IImgCtx interface.
  71. #ifdef UNICODE
  72. #define WANT_SHLWAPI_POSTSPLIT
  73. #endif
  74. #include "shlwapi.h"
  75. #include <webcheck.h>  // ISubscriptionMgr
  76. #include <mstask.h>    // TASK_TRIGGER
  77. #include <chanmgr.h>   // Channel Mgr interface
  78. #include <shdocvw.h>   // WhichPlatform
  79. //
  80. // Localy defined includes.
  81. //
  82. #include "debug.h"
  83. #include "cache.h"
  84. #include "runonnt.h"
  85. #include "globals.h"
  86. #include "strutil.h"
  87. #include "utils.h"
  88. #ifdef UNIX
  89. extern "C" void unixEnsureFileScheme(TCHAR *lpszFileScheme);
  90. #undef DebugMsg
  91. #undef TraceMsg
  92. #undef ASSERT
  93. #ifdef DEBUG
  94. extern "C" void _DebugMsgUnix(int i, const char *s, ...);
  95. #define DebugMsg _DebugMsgUnix
  96. #define TraceMsg _DebugMsgUnix
  97. extern "C" void _DebugAssertMsgUnix(char *msg, char *fileName, int line);
  98. #define ASSERT(x) { if(!(x)) _DebugAssertMsgUnix(#x, __FILE__, __LINE__);}
  99. #else
  100. #define DebugMsg
  101. #define TraceMsg
  102. #define ASSERT(x)
  103. #endif /* DEBUG */
  104. #endif /* UNIX */
  105. #endif // _STDINC_H_