Source code of Windows XP (NT5)
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.

56 lines
952 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. icon.h
  5. Abstract:
  6. This module implements icon handling code for the protected storage
  7. explorer.
  8. The shell uses these interfaces to retrieve icons associated with
  9. folders in the protected storage namespace.
  10. Author:
  11. Scott Field (sfield) 11-Mar-97
  12. --*/
  13. #ifndef ICON_H
  14. #define ICON_H
  15. class CExtractIcon : public IExtractIcon
  16. {
  17. protected:
  18. LONG m_ObjRefCount;
  19. public:
  20. CExtractIcon(LPCITEMIDLIST pidl);
  21. ~CExtractIcon();
  22. //
  23. // IUnknown methods
  24. //
  25. STDMETHOD (QueryInterface) (REFIID riid, LPVOID * ppvObj);
  26. STDMETHOD_ (ULONG, AddRef) (void);
  27. STDMETHOD_ (ULONG, Release) (void);
  28. //
  29. // IExtractIcon methods
  30. //
  31. STDMETHOD (GetIconLocation) (UINT, LPTSTR, UINT, LPINT, LPUINT);
  32. STDMETHOD (Extract) (LPCTSTR, UINT, HICON*, HICON*, UINT);
  33. private:
  34. DWORD m_dwType;
  35. PST_KEY m_KeyType;
  36. };
  37. #endif // ICON_H