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.

60 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: stdabout.h
  8. //
  9. //--------------------------------------------------------------------------
  10. /////////////////////////////////////////////////////////////////////
  11. // StdAbout.h
  12. //
  13. // HISTORY
  14. // 31-Jul-97 t-danm Creation.
  15. /////////////////////////////////////////////////////////////////////
  16. #ifndef __STDABOUT_H_INCLUDED__
  17. #define __STDABOUT_H_INCLUDED__
  18. class CSnapinAbout :
  19. public ISnapinAbout,
  20. public CComObjectRoot
  21. {
  22. BEGIN_COM_MAP(CSnapinAbout)
  23. COM_INTERFACE_ENTRY(ISnapinAbout)
  24. END_COM_MAP()
  25. public:
  26. CSnapinAbout();
  27. // ISnapinAbout
  28. STDMETHOD(GetSnapinDescription)(OUT LPOLESTR __RPC_FAR *lpDescription);
  29. STDMETHOD(GetProvider)(OUT LPOLESTR __RPC_FAR *lpName);
  30. STDMETHOD(GetSnapinVersion)(OUT LPOLESTR __RPC_FAR *lpVersion);
  31. STDMETHOD(GetSnapinImage)(OUT HICON __RPC_FAR *hAppIcon);
  32. STDMETHOD(GetStaticFolderImage)(
  33. OUT HBITMAP __RPC_FAR *hSmallImage,
  34. OUT HBITMAP __RPC_FAR *hSmallImageOpen,
  35. OUT HBITMAP __RPC_FAR *hLargeImage,
  36. OUT COLORREF __RPC_FAR *crMask);
  37. protected:
  38. // The following data members MUST be initialized by the constructor
  39. // of the derived class.
  40. UINT m_uIdStrDestription; // Resource Id of the description
  41. UINT m_uIdStrProvider; // Resource Id of the provider (ie, Microsoft Corporation)
  42. UINT m_uIdStrVersion; // Resource Id of the version of the snapin
  43. UINT m_uIdIconImage; // Resource Id for the icon/image of the snapin
  44. UINT m_uIdBitmapSmallImage;
  45. UINT m_uIdBitmapSmallImageOpen;
  46. UINT m_uIdBitmapLargeImage;
  47. HBITMAP hBitmapSmallImage;
  48. HBITMAP hBitmapSmallImageOpen;
  49. HBITMAP hBitmapLargeImage;
  50. COLORREF m_crImageMask;
  51. }; // CSnapinAbout()
  52. #endif // ~__STDABOUT_H_INCLUDED__