3.2.4.2.18.12 CreateQuotaCollection (Opnum 18)

The CreateQuotaCollection method creates an empty collection for callers to add quotas to.

 [id(FSRM_DISPID_QUOTA_MANAGER | 0x0A)] HRESULT CreateQuotaCollection(
   [out, retval] IFsrmCommittableCollection** collection
 );

collection: Pointer to an IFsrmCommittableCollection interface pointer (section 3.2.4.2.3) that upon completion points to an empty IFsrmCommittableCollection specific to quota objects. A caller MUST release the collection received when it is done with it.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80070057

E_INVALIDARG

The collection parameter is NULL.

Upon receiving this message, the server MUST validate parameters:

  • Verify that collection is not NULL.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST create a new collection object and set collection to the new collection's IFsrmCommittableCollection interface.