IFsrmQuotaManager::EnumEffectiveQuotas method (fsrmquota.h)
[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.]
Enumerates all the quotas that affect the specified path.
Syntax
HRESULT EnumEffectiveQuotas(
[in] BSTR path,
[in] FsrmEnumOptions options,
[out] IFsrmCommittableCollection **quotas
);
Parameters
[in] path
A local directory path. The string is limited to 260 characters.
[in] options
Options to use when enumerating the quotas. For possible values, see the FsrmEnumOptions enumeration.
[out] quotas
An IFsrmCommittableCollection interface that contains a collection of the quotas configured at or above the specified path.
Each item of the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmQuota interface.
The collection is empty if the path does not contain quotas.
Return value
The method returns the following return values.
Remarks
Does not enumerate automatic quotas. To enumerate automatic quotas, call the IFsrmQuotaManager::EnumAutoApplyQuotas method.
To enumerate all quotas, call the IFsrmQuotaManager::EnumQuotas method.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | fsrmquota.h (include FsrmQuota.h, FsrmTlb.h) |
DLL | SrmSvc.dll |