Export (0) Print
Expand All

IFsrmQuotaManager::GetQuota method

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMQuota class.]

Retrieves the quota for the specified directory.

Syntax


HRESULT GetQuota(
  [in]   BSTR path,
  [out]  IFsrmQuota **quota
);

Parameters

path [in]

The local directory path that contains the quota that you want to retrieve. The string is limited to 260 characters.

quota [out]

An IFsrmQuota interface to the quota object.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

FSRM_E_NOT_FOUND

A quota was not found.

FSRM_E_PATH_NOT_FOUND

The specified path was not found.

FSRM_E_INVALID_PATH

The specified path is not valid.

E_INVALIDARG

Returns this code for the following reasons:

  • The path parameter is NULL or empty.
  • The quota parameter is NULL.

 

Examples

For an example, see Getting Current Usage Values.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmQuota.h (include FsrmQuota.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmQuotaManager is defined as 90dcab7f-347c-4bfc-b543-540326305fbe

IID

IID_IFsrmQuotaManager is defined as 8bb68c7d-19d8-4ffb-809e-be4fc1734014

IID_IFsrmQuotaManagerEx is defined as 4846cb01-d430-494f-abb4-b1054999fb09

See also

IFsrmQuotaManager
IFsrmQuotaManagerEx
FsrmQuotaManager
MSFT_FSRMQuota

 

 

Show:
© 2014 Microsoft