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.

44 lines
1.3 KiB

  1. #ifndef _SAMPABOUT_H_
  2. #define _SAMPABOUT_H_
  3. #include <tchar.h>
  4. #include <mmc.h>
  5. class CSnapinAbout : public ISnapinAbout
  6. {
  7. private:
  8. ULONG m_cref;
  9. HBITMAP m_hSmallImage;
  10. HBITMAP m_hLargeImage;
  11. HBITMAP m_hSmallImageOpen;
  12. HICON m_hAppIcon;
  13. public:
  14. CSnapinAbout();
  15. ~CSnapinAbout();
  16. ///////////////////////////////
  17. // Interface IUnknown
  18. ///////////////////////////////
  19. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  20. STDMETHODIMP_(ULONG) AddRef();
  21. STDMETHODIMP_(ULONG) Release();
  22. ///////////////////////////////
  23. // Interface ISnapinAbout
  24. ///////////////////////////////
  25. STDMETHODIMP GetSnapinDescription( /* [out] */ LPOLESTR *lpDescription );
  26. STDMETHODIMP GetProvider( /* [out] */ LPOLESTR *lpName );
  27. STDMETHODIMP GetSnapinVersion( /* [out] */ LPOLESTR *lpVersion );
  28. STDMETHODIMP GetSnapinImage( /* [out] */ HICON *hAppIcon );
  29. STDMETHODIMP GetStaticFolderImage(
  30. /* [out] */ HBITMAP *hSmallImage,
  31. /* [out] */ HBITMAP *hSmallImageOpen,
  32. /* [out] */ HBITMAP *hLargeImage,
  33. /* [out] */ COLORREF *cMask);
  34. private:
  35. HRESULT CSnapinAbout::AllocOleStr( LPOLESTR *lpDest, _TCHAR *szBuffer );
  36. };
  37. #endif _SAMPABOUT_H_