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.

71 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1995.
  5. //
  6. // File: sdetails.hxx
  7. //
  8. // Contents: Declaration of CSharesSD, an implementation of IShellDetails
  9. //
  10. // History: 13-Dec-95 BruceFo Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef __SDETAILS_HXX__
  14. #define __SDETAILS_HXX__
  15. //////////////////////////////////////////////////////////////////////////////
  16. class CSharesSD : public IShellDetails
  17. {
  18. public:
  19. CSharesSD(IN HWND hwnd, IN ULONG level)
  20. : m_ulRefs(0), m_hwnd(hwnd), m_level(level) { AddRef(); }
  21. ~CSharesSD() {}
  22. //
  23. // IUnknown methods
  24. //
  25. STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppvObj);
  26. STDMETHOD_(ULONG,AddRef)();
  27. STDMETHOD_(ULONG,Release)();
  28. //
  29. // IShellDetails methods
  30. //
  31. STDMETHOD(GetDetailsOf)(
  32. LPCITEMIDLIST pidl,
  33. UINT iColumn,
  34. LPSHELLDETAILS pDetails
  35. );
  36. STDMETHOD(ColumnClick)(
  37. UINT iColumn
  38. );
  39. private:
  40. // helpers
  41. STDMETHOD(GetDetailsOf1)(
  42. LPCITEMIDLIST pidl,
  43. UINT iColumn,
  44. LPSHELLDETAILS pDetails
  45. );
  46. STDMETHOD(GetDetailsOf2)(
  47. LPCITEMIDLIST pidl,
  48. UINT iColumn,
  49. LPSHELLDETAILS pDetails
  50. );
  51. ULONG m_level;
  52. ULONG m_ulRefs;
  53. HWND m_hwnd;
  54. };
  55. #endif // __SDETAILS_HXX__