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.

117 lines
3.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: about.h
  7. //
  8. // Contents: definition of CAbout, CSCEAbout, CSCMAbout, CSSAbout,
  9. // CRSOPAbout & CLSAbout
  10. //
  11. //----------------------------------------------------------------------------
  12. #ifndef __ABOUT_H_INCLUDED__
  13. #define __ABOUT_H_INCLUDED__
  14. // About for "SCE" snapin
  15. class CAbout :
  16. public ISnapinAbout,
  17. public CComObjectRoot
  18. {
  19. BEGIN_COM_MAP(CAbout)
  20. COM_INTERFACE_ENTRY(ISnapinAbout)
  21. END_COM_MAP()
  22. public:
  23. // ISnapinAbout
  24. STDMETHOD(GetSnapinDescription)(OUT LPOLESTR __RPC_FAR *lpDescription);
  25. STDMETHOD(GetProvider)(OUT LPOLESTR __RPC_FAR *lpName);
  26. STDMETHOD(GetSnapinVersion)(OUT LPOLESTR __RPC_FAR *lpVersion);
  27. STDMETHOD(GetSnapinImage)(OUT HICON __RPC_FAR *hAppIcon);
  28. STDMETHOD(GetStaticFolderImage)(
  29. OUT HBITMAP __RPC_FAR *hSmallImage,
  30. OUT HBITMAP __RPC_FAR *hSmallImageOpen,
  31. OUT HBITMAP __RPC_FAR *hLargeImage,
  32. OUT COLORREF __RPC_FAR *crMask);
  33. protected:
  34. // The following data members MUST be initialized by the constructor
  35. // of the derived class.
  36. UINT m_uIdStrDescription; // Resource Id of the description
  37. UINT m_uIdStrProvider; // Resource Id of the provider (ie, Microsoft Corporation)
  38. UINT m_uIdStrVersion; // Resource Id of the version of the snapin
  39. UINT m_uIdIconImage; // Resource Id for the icon/image of the snapin
  40. UINT m_uIdBitmapSmallImage;
  41. UINT m_uIdBitmapSmallImageOpen;
  42. UINT m_uIdBitmapLargeImage;
  43. COLORREF m_crImageMask;
  44. };
  45. // About for "SCE" snapin
  46. class CSCEAbout :
  47. public CAbout,
  48. public CComCoClass<CSCEAbout, &CLSID_SCEAbout>
  49. {
  50. public:
  51. CSCEAbout();
  52. DECLARE_REGISTRY(CSCEAbout, _T("Wsecedit.SCEAbout.1"), _T("Wsecedit.SCEAbout.1"), IDS_SCE_DESC, THREADFLAGS_BOTH)
  53. };
  54. // About for "SCM" snapin
  55. class CSCMAbout :
  56. public CAbout,
  57. public CComCoClass<CSCMAbout, &CLSID_SCMAbout>
  58. {
  59. public:
  60. CSCMAbout();
  61. DECLARE_REGISTRY(CSCMAbout, _T("Wsecedit.SCMAbout.1"), _T("Wsecedit.SCMAbout.1"), IDS_SAV_DESC, THREADFLAGS_BOTH)
  62. };
  63. // About for "Security Settings" snapin
  64. class CSSAbout :
  65. public CAbout,
  66. public CComCoClass<CSSAbout, &CLSID_SSAbout>
  67. {
  68. public:
  69. CSSAbout();
  70. DECLARE_REGISTRY(CSSAbout, _T("Wsecedit.SSAbout.1"), _T("Wsecedit.SSAbout.1"), IDS_SS_DESC, THREADFLAGS_BOTH)
  71. };
  72. // About for "RSOP Security Settings" snapin
  73. class CRSOPAbout :
  74. public CAbout,
  75. public CComCoClass<CRSOPAbout, &CLSID_RSOPAbout>
  76. {
  77. public:
  78. CRSOPAbout();
  79. DECLARE_REGISTRY(CRSOPAbout, _T("Wsecedit.RSOPAbout.1"), _T("Wsecedit.RSOPAbout.1"), IDS_RSOP_DESC, THREADFLAGS_BOTH)
  80. };
  81. // About for "Local Security Settings" snapin
  82. class CLSAbout :
  83. public CAbout,
  84. public CComCoClass<CLSAbout, &CLSID_LSAbout>
  85. {
  86. public:
  87. CLSAbout();
  88. DECLARE_REGISTRY(CLSAbout, _T("Wsecedit.LSAbout.1"), _T("Wsecedit.LSAbout.1"), IDS_LS_DESC, THREADFLAGS_BOTH)
  89. };
  90. #endif // ~__ABOUT_H_INCLUDED__