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.

39 lines
1.3 KiB

  1. class CRecycleBinCleaner : public IEmptyVolumeCache2
  2. {
  3. public:
  4. CRecycleBinCleaner();
  5. ~CRecycleBinCleaner();
  6. // IUnknown methods
  7. STDMETHODIMP QueryInterface(REFIID riid, PVOID *ppvObj);
  8. STDMETHODIMP_(ULONG) AddRef(void);
  9. STDMETHODIMP_(ULONG) Release(void);
  10. // IEmptyVolumeCache
  11. STDMETHODIMP Initialize(HKEY hRegKey, LPCWSTR pszVolume,
  12. LPWSTR *ppszDisplayName, LPWSTR *ppszDescription,
  13. DWORD *pdwFlags);
  14. STDMETHODIMP GetSpaceUsed(DWORDLONG *pdwSpaceUsed, IEmptyVolumeCacheCallBack *picb);
  15. STDMETHODIMP Purge(DWORDLONG dwSpaceToFree, IEmptyVolumeCacheCallBack *picb);
  16. STDMETHODIMP ShowProperties(HWND hwnd);
  17. STDMETHODIMP Deactivate(DWORD *pdwFlags);
  18. // IEmptyVolumeCache2
  19. STDMETHODIMP InitializeEx(HKEY hkRegKey, LPCWSTR pcwszVolume,
  20. LPCWSTR pcwszKeyName,
  21. LPWSTR *ppwszDisplayName, LPWSTR *ppwszDescription,
  22. LPWSTR *ppwszBtnText,
  23. DWORD *pdwFlags);
  24. private:
  25. ULONG m_cRef;
  26. WCHAR m_szVolume[5];
  27. };