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.

49 lines
1.7 KiB

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