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.

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