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.

52 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. #ifndef __STDABOUT_H_INCLUDED__
  11. #define __STDABOUT_H_INCLUDED__
  12. class CSnapinAbout :
  13. public ISnapinAbout,
  14. public CComObjectRoot
  15. {
  16. BEGIN_COM_MAP(CSnapinAbout)
  17. COM_INTERFACE_ENTRY(ISnapinAbout)
  18. END_COM_MAP()
  19. public:
  20. CSnapinAbout();
  21. virtual ~CSnapinAbout ();
  22. // ISnapinAbout
  23. STDMETHOD(GetSnapinDescription)(OUT LPOLESTR __RPC_FAR *lpDescription);
  24. STDMETHOD(GetProvider)(OUT LPOLESTR __RPC_FAR *lpName);
  25. STDMETHOD(GetSnapinVersion)(OUT LPOLESTR __RPC_FAR *lpVersion);
  26. STDMETHOD(GetSnapinImage)(OUT HICON __RPC_FAR *hAppIcon);
  27. STDMETHOD(GetStaticFolderImage)(
  28. OUT HBITMAP __RPC_FAR *hSmallImage,
  29. OUT HBITMAP __RPC_FAR *hSmallImageOpen,
  30. OUT HBITMAP __RPC_FAR *hLargeImage,
  31. OUT COLORREF __RPC_FAR *crMask);
  32. protected:
  33. // The following data members MUST be initialized by the constructor
  34. // of the derived class.
  35. UINT m_uIdStrDestription; // Resource Id of the description
  36. UINT m_uIdStrProvider; // Resource Id of the provider (ie, Microsoft Corporation)
  37. UINT m_uIdStrVersion; // Resource Id of the version of the snapin
  38. UINT m_uIdIconImage; // Resource Id for the icon/image of the snapin
  39. UINT m_uIdBitmapSmallImage;
  40. UINT m_uIdBitmapSmallImageOpen;
  41. UINT m_uIdBitmapLargeImage;
  42. COLORREF m_crImageMask;
  43. HBITMAP m_hSmallImage; // cached bitmap for GetStaticFolderImage
  44. HBITMAP m_hSmallImageOpen; // cached bitmap for GetStaticFolderImage
  45. HBITMAP m_hLargeImage; // cached bitmap for GetStaticFolderImage
  46. }; // CSnapinAbout()
  47. #endif // ~__STDABOUT_H_INCLUDED__