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.

72 lines
1.4 KiB

  1. /******************************************************************
  2. VolumeQuotaSettings.CPP -- WMI provider class Definition
  3. Description:
  4. Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  5. ******************************************************************/
  6. #ifndef _CVOLUME_QUOTA_SETTINGS_H
  7. #define _CVOLUME_QUOTA_SETTINGS_H
  8. #include "precomp.h"
  9. #include "DskQuotaCommon.h"
  10. class CVolumeQuotaSetting : public Provider
  11. {
  12. private:
  13. HRESULT EnumerateAllVolumeQuotas (
  14. MethodContext *pMethodContext
  15. );
  16. HRESULT PutNewInstance (
  17. LPWSTR lpDeviceId,
  18. LPWSTR lpVolumePath,
  19. MethodContext *pMethodContext
  20. );
  21. protected:
  22. // Reading Functions
  23. //============================
  24. HRESULT EnumerateInstances (
  25. MethodContext *pMethodContext,
  26. long lFlags = 0L
  27. ) ;
  28. HRESULT GetObject (
  29. CInstance *pInstance,
  30. long lFlags,
  31. CFrameworkQuery &Query
  32. ) ;
  33. HRESULT ExecQuery (
  34. MethodContext *pMethodContext,
  35. CFrameworkQuery& Query,
  36. long lFlags = 0
  37. ) ;
  38. public:
  39. // Constructor/destructor
  40. //=======================
  41. CVolumeQuotaSetting(
  42. LPCWSTR lpwszClassName,
  43. LPCWSTR lpwszNameSpace
  44. ) ;
  45. virtual ~CVolumeQuotaSetting () ;
  46. private:
  47. DskCommonRoutines m_CommonRoutine;
  48. };
  49. #endif