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.

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