Leaked source code of windows server 2003
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.

55 lines
1.9 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(UINT uIdStrDestription,
  21. UINT uIdIconImage, // Resource Id for the icon/image of the snapin
  22. UINT uIdBitmapSmallImage,
  23. UINT uIdBitmapSmallImageOpen,
  24. UINT uIdBitmapLargeImage,
  25. COLORREF crImageMask);
  26. virtual ~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_uIdIconImage; // Resource Id for the icon/image of the snapin
  42. UINT m_uIdBitmapSmallImage;
  43. UINT m_uIdBitmapSmallImageOpen;
  44. UINT m_uIdBitmapLargeImage;
  45. COLORREF m_crImageMask;
  46. HBITMAP m_hSmallImage; // cached bitmap for GetStaticFolderImage
  47. HBITMAP m_hSmallImageOpen; // cached bitmap for GetStaticFolderImage
  48. HBITMAP m_hLargeImage; // cached bitmap for GetStaticFolderImage
  49. }; // CSnapinAbout()
  50. #endif // ~__STDABOUT_H_INCLUDED__