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.

111 lines
3.1 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. #ifndef _stdafx_h__2_12_98_
  5. #define _stdafx_h__2_12_98_
  6. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  7. //
  8. //
  9. //Its never a good idea to hack the following since this will cause problems
  10. //with MFC.
  11. //
  12. //Mail note on the subject:
  13. // We orginally thought that we needed to build with WIN32_IE=0x0400
  14. // to pick up the new WIZARD97 stuff. MFC42.DLL was built with WIN32_IE=0x0300.
  15. // Unfortunately, the PROPSHEETPAGE and PROPSHEETHEADER structures (defined in
  16. // public\sdk\inc\prsht.h) grow between versions 0x0300 and 0x0400. This causes
  17. // MFC classes to grow, so there is a disconnect between classes in the IIS
  18. // components and within MFC, and everything quickly goes crazy. So crazy that
  19. // even though some parts of IIS can use it we can not since GetPage(int i)
  20. // from MFC's CPropertySheet will AV.
  21. ///////////////////////////
  22. //#define HACK_WIN32IE
  23. ///////////////////////////
  24. #ifdef HACK_WIN32IE
  25. // we need to define _WIN32_IE for the new Wizard97 styles
  26. #ifdef _WIN32_IE
  27. # if (_WIN32_IE < 0x0400)
  28. //#pragma warning("we are redefining _WIN32_IE 0x0500 because NT5 headers dont do it")
  29. # undef _WIN32_IE
  30. # define _WIN32_IE 0x0500
  31. # endif
  32. #else
  33. # define _WIN32_IE 0x0500
  34. #endif
  35. #endif /* HACK_WIN32IE */
  36. //#ifndef _WIN32_WINNT
  37. // #define _WIN32_WINNT 0x0400
  38. //#endif
  39. #include <afxctl.h> // MFC support for OLE Controls
  40. #include <afxcmn.h>
  41. // Delete the two includes below if you do not wish to use the MFC
  42. // database classes
  43. #ifndef _UNICODE
  44. #include <afxdb.h> // MFC database classes
  45. #include <afxdao.h> // MFC DAO database classes
  46. #endif //_UNICODE
  47. //#include "Global.h"
  48. #define NOT_COMPILING_COMPROP // we dont want comprop to use
  49. // comprop/resource.h -- use our
  50. // certmap/resource.h file
  51. // ../comprop/comprop.h defines COMDLL and sets it as the following, we want
  52. // to use '_COMSTATIC' in certmap. So we define it here. We included
  53. // a copy of how comprop will define COMDLL as FYI.
  54. // We define _MDKEYS_H_ so that ./comprop/comprop.h can be included w/o
  55. // trouble. It defines many Unicode string assignments that do not compile
  56. // in ANSI mode.
  57. //-----------------------------------------------------------------
  58. #ifdef COMDLL
  59. # undef COMDLL
  60. # define _COMSTATIC
  61. #endif
  62. #ifndef _MDKEYS_H_
  63. #define _MDKEYS_H_
  64. #endif
  65. // #ifdef _COMEXPORT
  66. // #define COMDLL __declspec(dllexport)
  67. // #elif defined(_COMIMPORT)
  68. // #define COMDLL __declspec(dllimport)
  69. // #elif defined(_COMSTATIC)
  70. // #define COMDLL
  71. // #else
  72. // #error "Must define either _COMEXPORT, _COMIMPORT or _COMSTATIC"
  73. // #endif // _COMEXPORT
  74. //list templates and such
  75. #include <afxtempl.h>
  76. #include <atlconv.h>
  77. #include "resource.h"
  78. /*
  79. #include "Debug.h"
  80. #include "Util.h"
  81. */
  82. #include "iishelp.h"
  83. #include "ddxvlocal.h"
  84. #endif /* _stdafx_h__2_12_98_ */