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.

66 lines
1.6 KiB

  1. #ifndef _INC_DSKQUOTA_EXTINIT_H
  2. #define _INC_DSKQUOTA_EXTINIT_H
  3. ///////////////////////////////////////////////////////////////////////////////
  4. /* File: extinit.h
  5. Description: Contains declarations for disk quota shell extensions.
  6. Revision History:
  7. Date Description Programmer
  8. -------- --------------------------------------------------- ----------
  9. 08/15/96 Initial creation. BrianAu
  10. */
  11. ///////////////////////////////////////////////////////////////////////////////
  12. #ifndef _INC_DSKQUOTA_UTILS_H
  13. # include "utils.h"
  14. #endif
  15. #ifndef _INC_DSKQUOTA_STRCLASS_H
  16. # include "strclass.h"
  17. #endif
  18. class ShellExtInit : public IShellExtInit
  19. {
  20. private:
  21. LONG m_cRef;
  22. CVolumeID m_idVolume; // Contains strings for parsing and display.
  23. HRESULT Create_IShellPropSheetExt(REFIID riid, LPVOID *ppvOut);
  24. HRESULT Create_ISnapInPropSheetExt(REFIID riid, LPVOID *ppvOut);
  25. public:
  26. ShellExtInit(VOID)
  27. : m_cRef(0) { }
  28. //
  29. // IUnknown methods.
  30. //
  31. STDMETHODIMP
  32. QueryInterface(
  33. REFIID,
  34. LPVOID *);
  35. STDMETHODIMP_(ULONG)
  36. AddRef(
  37. VOID);
  38. STDMETHODIMP_(ULONG)
  39. Release(
  40. VOID);
  41. //
  42. // IShellExtInit methods.
  43. //
  44. STDMETHODIMP
  45. Initialize(
  46. LPCITEMIDLIST pidlFolder,
  47. IDataObject *pDataObj,
  48. HKEY hkeyProgID);
  49. };
  50. #endif // _INC_DSKQUOTA_EXTINIT_H