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.

132 lines
4.5 KiB

  1. // certmap.h : main header file for CERTMAP.DLL
  2. #if !defined( __AFXCTL_H__ )
  3. #error include 'afxctl.h' before including this file
  4. #endif
  5. #ifndef _certmap_h_1234_
  6. #define _certmap_h_1234_
  7. #include <iadmw.h> // MetaBase Wrapper
  8. #include <iis64.h> // 64-bit helper stuff
  9. #include "Wrapmb.h" // CWrapMetaBase -- see below we also use CAFX_MetaWrapper
  10. #include <iiscnfgp.h> // IIS config parameters like the MetaBase
  11. #include "strpass.h"
  12. // Check if legacy metabase format (before iis6)
  13. BOOL IsLegacyMetabase(IMSAdminBase* pMB);
  14. // Boyd put a lot of efforts to make it hard to use iisui. Therefore I should
  15. // put this declaration here instead of including the file
  16. BOOL __declspec(dllimport)
  17. GetIUsrAccount(
  18. IN LPCTSTR lpstrServer,
  19. IN CWnd * pParent,
  20. LPTSTR buf,
  21. int size
  22. );
  23. /*
  24. #include "Easy.h" // do this before the "using namespace" decl
  25. #include "Debug.h" // Are we building a debugging build?
  26. #include "admin.h" // defines the ADMIN_INFO an some handley #defines for the CN= strings
  27. #include "Easy.h" // do this before the "using namespace" decl
  28. #include "Cookie.h" // CCertmapCookie
  29. #include "CTL.h"
  30. #include "Certifct.h"
  31. #include "WrpMBwrp.h" // CAFX_MetaWrapper derives from CWrapMetaBase
  32. // and provides a handy GetString method to set
  33. // strings directly. Otherwise its CWrapMetaBase.
  34. // property definitions and keywords
  35. #include "Meta.h" // for general MetaBase constant definitions and error values
  36. #include <wincrypt.h>
  37. #include <cryptui.h>
  38. //SkipThis// // We can not simply say:
  39. //SkipThis// // using namespace Easy; // use the Easier to use
  40. //SkipThis// // since the "less able" C++ compiler can not differentiate
  41. //SkipThis// // between '::CString' and our Easier to use Easy::CString. I wanted
  42. //SkipThis// // Easy::CString to be used always and just say look in Easy first...
  43. //SkipThis// // This is easy to do w/ java by declaring a package and preInserting
  44. //SkipThis// // it in the class path ahead of the std libraries...
  45. //SkipThis//
  46. //SkipThis// "#define CString Easy::CString"
  47. // Define 'USE_NEW_REG_METHOD' if you want us to use our new Reg::
  48. // methods to read and write strings to the registry... The old code
  49. // that straight lines the calls to do this have sections like:
  50. // #ifdef USE_NEW_REG_METHOD
  51. //
  52. // // Get entry in ==path=== ==w/ name== ==place here==
  53. // return Reg::GetNameValueIn(SZ_PARAMETERS, szValueName, sz,
  54. // HKEY_CURRENT_USER);
  55. //
  56. // #else ////////////////////////////// use the old method ///////////////
  57. //
  58. // so that you can choose whether to use the new method of the old one...
  59. #define USE_NEW_REG_METHOD
  60. #include "Util.h" // various utilites to help debug
  61. */
  62. #include "resource.h" // main symbols
  63. #include "helpmap.h" // main symbols
  64. //#include "certcli.h" // has ICertRequest COM interface definitions
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CCertmapApp : See certmap.cpp for implementation.
  67. class CCertmapApp : public COleControlModule
  68. {
  69. public:
  70. BOOL InitInstance();
  71. int ExitInstance();
  72. virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
  73. };
  74. extern const GUID CDECL _tlid;
  75. extern const WORD _wVerMajor;
  76. extern const WORD _wVerMinor;
  77. /*
  78. #define _EXE_ // We are building the EXE!
  79. // this is used in "KeyObjs.h" to
  80. // decide if we are importing or exporting
  81. // "KeyObjs.h" Classes. We are the EXE,
  82. // aka the guy implementing the CService/etc objs.
  83. #include "KeyObjs.h"
  84. */
  85. #define SZ_NAMESPACE_EXTENTION "/<nsepm>"
  86. /*
  87. extern void DisplaySystemError (HWND hParent, DWORD dwErr); // see CTL.cpp
  88. extern BOOL MyGetOIDInfo (CString & string, LPCSTR pszObjId);
  89. extern HRESULT FormatDate (FILETIME utcDateTime, CString & pszDateTime);
  90. // the following fnct is used to move GUID strings out of the registry
  91. // and into the metabase. Its called in the OnClick event for our OCX cntrl
  92. extern BOOL MigrateGUIDS( ADMIN_INFO& info );
  93. #define IDS_CERTIFICATE_MANAGER IDS_CERTMAP
  94. */
  95. #endif /* _certmap_h_1234_ */