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.

72 lines
2.0 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to existing Microsoft documentation.
  4. //
  5. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  6. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  7. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  8. // PURPOSE.
  9. //
  10. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  11. //==============================================================;
  12. // CAbout.h : Declaration of the CAbout
  13. #ifndef __ABOUT_H_
  14. #define __ABOUT_H_
  15. #include "resource.h" // main symbols
  16. #include "about.h"
  17. #include <tchar.h>
  18. #include <mmc.h>
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CAbout
  21. class ATL_NO_VTABLE CAbout :
  22. public CComObjectRootEx<CComSingleThreadModel>,
  23. public CComCoClass<CAbout, &CLSID_About>,
  24. public ISnapinAbout
  25. {
  26. private:
  27. ULONG m_cref;
  28. HBITMAP m_hSmallImage;
  29. HBITMAP m_hLargeImage;
  30. HBITMAP m_hSmallImageOpen;
  31. HICON m_hAppIcon;
  32. public:
  33. CAbout();
  34. ~CAbout();
  35. DECLARE_REGISTRY_RESOURCEID(IDR_ABOUT)
  36. DECLARE_PROTECT_FINAL_CONSTRUCT()
  37. BEGIN_COM_MAP(CAbout)
  38. COM_INTERFACE_ENTRY(ISnapinAbout)
  39. END_COM_MAP()
  40. ///////////////////////////////
  41. // Interface ISnapinAbout
  42. ///////////////////////////////
  43. STDMETHODIMP GetSnapinDescription(
  44. /* [out] */ LPOLESTR *lpDescription);
  45. STDMETHODIMP GetProvider(
  46. /* [out] */ LPOLESTR *lpName);
  47. STDMETHODIMP GetSnapinVersion(
  48. /* [out] */ LPOLESTR *lpVersion);
  49. STDMETHODIMP GetSnapinImage(
  50. /* [out] */ HICON *hAppIcon);
  51. STDMETHODIMP GetStaticFolderImage(
  52. /* [out] */ HBITMAP *hSmallImage,
  53. /* [out] */ HBITMAP *hSmallImageOpen,
  54. /* [out] */ HBITMAP *hLargeImage,
  55. /* [out] */ COLORREF *cMask);
  56. };
  57. #endif //__ABOUT_H_