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.

75 lines
2.1 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to existing Microsoft documentation.
  4. //
  5. //
  6. //
  7. //
  8. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  9. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  10. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  11. // PURPOSE.
  12. //
  13. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  14. //
  15. //
  16. //
  17. //==============================================================;
  18. #ifndef _SAMPABOUT_H_
  19. #define _SAMPABOUT_H_
  20. #include <tchar.h>
  21. #include <mmc.h>
  22. class CSnapinAbout : public ISnapinAbout
  23. {
  24. private:
  25. ULONG m_cref;
  26. HBITMAP m_hSmallImage;
  27. HBITMAP m_hLargeImage;
  28. HBITMAP m_hSmallImageOpen;
  29. HICON m_hAppIcon;
  30. public:
  31. CSnapinAbout();
  32. ~CSnapinAbout();
  33. ///////////////////////////////
  34. // Interface IUnknown
  35. ///////////////////////////////
  36. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  37. STDMETHODIMP_(ULONG) AddRef();
  38. STDMETHODIMP_(ULONG) Release();
  39. ///////////////////////////////
  40. // Interface ISnapinAbout
  41. ///////////////////////////////
  42. STDMETHODIMP GetSnapinDescription(
  43. /* [out] */ LPOLESTR *lpDescription);
  44. STDMETHODIMP GetProvider(
  45. /* [out] */ LPOLESTR *lpName);
  46. STDMETHODIMP GetSnapinVersion(
  47. /* [out] */ LPOLESTR *lpVersion);
  48. STDMETHODIMP GetSnapinImage(
  49. /* [out] */ HICON *hAppIcon);
  50. STDMETHODIMP GetStaticFolderImage(
  51. /* [out] */ HBITMAP *hSmallImage,
  52. /* [out] */ HBITMAP *hSmallImageOpen,
  53. /* [out] */ HBITMAP *hLargeImage,
  54. /* [out] */ COLORREF *cMask);
  55. ///////////////////////////////
  56. // Private Interface
  57. ///////////////////////////////
  58. private:
  59. HRESULT CSnapinAbout::AllocOleStr(
  60. LPOLESTR *lpDest,
  61. _TCHAR *szBuffer);
  62. };
  63. #endif _SAMPABOUT_H_