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.

60 lines
1.5 KiB

  1. // CAbout.h : Declaration of the CCAbout
  2. #ifndef __CABOUT_H_
  3. #define __CABOUT_H_
  4. #include "resource.h" // main symbols
  5. #include "Cabout.h"
  6. #include <tchar.h>
  7. #include <mmc.h>
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCAbout
  10. class ATL_NO_VTABLE CCAbout :
  11. public CComObjectRootEx<CComSingleThreadModel>,
  12. public CComCoClass<CCAbout, &CLSID_CAbout>,
  13. public ISnapinAbout
  14. {
  15. private:
  16. ULONG m_cref;
  17. HBITMAP m_hSmallImage;
  18. HBITMAP m_hLargeImage;
  19. HBITMAP m_hSmallImageOpen;
  20. HICON m_hAppIcon;
  21. public:
  22. CCAbout();
  23. ~CCAbout();
  24. DECLARE_REGISTRY_RESOURCEID(IDR_CABOUT)
  25. DECLARE_PROTECT_FINAL_CONSTRUCT()
  26. BEGIN_COM_MAP(CCAbout)
  27. COM_INTERFACE_ENTRY(ISnapinAbout)
  28. END_COM_MAP()
  29. ///////////////////////////////
  30. // Interface ISnapinAbout
  31. ///////////////////////////////
  32. STDMETHODIMP GetSnapinDescription(
  33. /* [out] */ LPOLESTR *lpDescription);
  34. STDMETHODIMP GetProvider(
  35. /* [out] */ LPOLESTR *lpName);
  36. STDMETHODIMP GetSnapinVersion(
  37. /* [out] */ LPOLESTR *lpVersion);
  38. STDMETHODIMP GetSnapinImage(
  39. /* [out] */ HICON *hAppIcon);
  40. STDMETHODIMP GetStaticFolderImage(
  41. /* [out] */ HBITMAP *hSmallImage,
  42. /* [out] */ HBITMAP *hSmallImageOpen,
  43. /* [out] */ HBITMAP *hLargeImage,
  44. /* [out] */ COLORREF *cMask);
  45. };
  46. #endif //__CABOUT_H_