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.

257 lines
4.9 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. wininetp.h
  5. Abstract:
  6. Includes all headers for precompiled header to build Windows Internet
  7. client DLL
  8. Author:
  9. Richard L Firth (rfirth) 26-Oct-1994
  10. Revision History:
  11. 26-Oct-1994 rfirth
  12. Created
  13. --*/
  14. #ifndef __WININETP_H__
  15. #define __WININETP_H__ 1
  16. #if defined(_WIN64)
  17. #pragma warning(disable:4267) // conversion from 'size_t' to 'DWORD'
  18. #endif
  19. // Added this warning disable 4509 because we added SEH around _alloca calls.
  20. // This is a false positive warning. Our usage of SEH allows the destructors to be called.
  21. #pragma warning(disable:4509) // nonstandard extension used: <function> uses SEH and <object> has destructor
  22. #pragma prefast(disable:263, "catching possible stack exhaustion using _alloca with SEH")
  23. #pragma prefast(disable:400, "using strcmp variants only to check for string equivalence")
  24. //
  25. // Checked builds get INET_DEBUG set by default; retail builds get no debugging
  26. // by default
  27. //
  28. // #define STRESS_BUG_DEBUG // for stress debugging
  29. #if DBG
  30. #define STRESS_BUG_DEBUG // for stress debugging
  31. #if !defined(INET_DEBUG)
  32. #define INET_DEBUG 1
  33. #endif // INET_DEBUG
  34. #else
  35. #if !defined(INET_DEBUG)
  36. #define INET_DEBUG 0
  37. #endif // INET_DEBUG
  38. #endif // DBG
  39. //
  40. // common include files
  41. //
  42. //
  43. // CRT includes
  44. //
  45. #include <stdio.h>
  46. #include <stdlib.h>
  47. #include <stdarg.h>
  48. #include <stddef.h> // Pull in the 'offsetof' macro.
  49. #include <string.h>
  50. #include <memory.h>
  51. #include <ctype.h>
  52. #include <excpt.h>
  53. #include <limits.h>
  54. #include <fcntl.h>
  55. #include <io.h>
  56. #include <time.h>
  57. //
  58. // OS includes
  59. //
  60. #if defined(__cplusplus)
  61. extern "C" {
  62. #endif
  63. #include <nt.h>
  64. #include <ntrtl.h>
  65. #include <nturtl.h>
  66. #include <ntexapi.h>
  67. #include <windows.h>
  68. #if defined(__cplusplus)
  69. }
  70. #endif
  71. //#include <fastcrit.h>
  72. //
  73. // SSL/PCT Security includes
  74. //
  75. #if defined(__cplusplus)
  76. extern "C" {
  77. #endif
  78. #define SECURITY_WIN32
  79. #include <sspi.h> // standard SSPI interface
  80. #include <issperr.h> // SSPI errors.
  81. #include <spseal.h> // Private SSPI Seal/UnSeal functions.
  82. #include <schnlsp.h> // shared private schannel/wininet interfaces.
  83. #include <wintrust.h> // various CAPI stuff for cert management
  84. #include <wincrypt.h>
  85. #if defined(__cplusplus)
  86. }
  87. #endif
  88. #define WININET_SERVER_CORE 1
  89. //
  90. // WININET includes
  91. //
  92. #include <iwinsock.h>
  93. #include <winhttp.h>
  94. #include <winhttpi.h>
  95. #include <private.h>
  96. #include <ansi.h>
  97. #include <wininetd.h>
  98. #include <resinfo.h>
  99. #include <syncobj.hxx>
  100. #include <serialst.h>
  101. #include <chunkflt.hxx>
  102. #include <inetdbg.h>
  103. #include <tracer.h>
  104. #ifdef WINHTTP_FOR_MSXML
  105. # include <msxmlmem.h>
  106. #else
  107. # include <debugmem.h>
  108. #endif
  109. #include <shlwapi.h>
  110. #define NO_SHLWAPI_MLUI
  111. #include <shlwapip.h>
  112. #include <malloc.h>
  113. #include <crtsubst.h>
  114. #include <handle.h>
  115. #include <constant.h>
  116. #include <macros.h>
  117. #include <inetp.h>
  118. #include <util.h>
  119. #include <proxreg.h>
  120. #include <icstring.hxx>
  121. #include <cliauth.hxx>
  122. #include <certcach.hxx>
  123. #include <buffer.hxx>
  124. #include <thrdinfo.h>
  125. #include <defaults.h>
  126. #include <passport.h>
  127. #include <spluginx.hxx>
  128. #include <splugin.hxx>
  129. #include <secinit.h>
  130. #include <inetsspi.h>
  131. #include <tstr.h>
  132. #include <registry.h>
  133. #include <parseurl.h>
  134. #include <globals.h>
  135. #include <reslock.hxx>
  136. #include <autoprox.hxx>
  137. #include <proxysup.hxx>
  138. #include <hinet.hxx>
  139. #include <priolist.hxx>
  140. #include <icasync.hxx>
  141. #include <caddrlst.hxx>
  142. #include <icsocket.hxx>
  143. #include <ssocket.hxx>
  144. #include <servinfo.hxx>
  145. #include <connect.hxx>
  146. #include <http.hxx>
  147. #include <cookie.h>
  148. #include <rescache.h>
  149. #include <parsers.h>
  150. #include <fsm.hxx>
  151. #include <mpacket.hxx>
  152. #include <inetchar.h>
  153. #include <bgtask.hxx>
  154. #include <dlole.h>
  155. #if defined(__cplusplus)
  156. extern "C" {
  157. #endif
  158. //
  159. // Various protocol package initializers.
  160. //
  161. BOOL
  162. WINAPI
  163. WinInetDllEntryPoint(
  164. IN HINSTANCE DllHandle,
  165. IN DWORD Reason,
  166. IN LPVOID Reserved
  167. );
  168. #if defined(__cplusplus)
  169. }
  170. #endif
  171. //
  172. // Need version 0x400 for ras defines for this to work on win95 gold.
  173. //
  174. #if defined(__cplusplus)
  175. extern "C" {
  176. #endif
  177. #undef WINVER
  178. #define WINVER 0x400
  179. #include <ras.h>
  180. #include <raserror.h>
  181. #ifdef ICECAP
  182. extern "C" void _stdcall StartCAP(void);
  183. extern "C" void _stdcall StopCAP(void);
  184. extern "C" void _stdcall SuspendCAP(void);
  185. extern "C" void _stdcall ResumeCAP(void);
  186. extern "C" void _stdcall MarkCAP(long lMark); // write mark to MEA
  187. extern "C" void _stdcall AllowCAP(void); // Allow profiling when 'profile=almostnever'
  188. #else
  189. #define StartCAP()
  190. #define StopCAP()
  191. #define SuspendCAP()
  192. #define ResumeCAP()
  193. #define MarkCAP(n)
  194. #define AllowCAP()
  195. #endif
  196. #if defined(__cplusplus)
  197. }
  198. #endif
  199. /* X-Platform stuff */
  200. #include <xpltfrm.h>
  201. #endif /* __WININETP_H__ */