3.2.4.2.14.7 AddThreshold (Opnum 17)

The AddThreshold method adds a threshold to the quota objects list of thresholds.

 [id(FSRM_DISPID_QUOTA_BASE | 0x01)] HRESULT AddThreshold(
   [in] FSRM_QUOTA_THRESHOLD threshold
 );

threshold: Contains the value of the threshold to add to the quota object.

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

Return value/code

Description

0x80045303

FSRM_E_ALREADY_EXISTS

The object being created already exists.

0x8004530D

FSRM_E_OUT_OF_RANGE

The content of the threshold parameter is less than 1 or greater than 250.

Upon receiving this message, the server MUST validate parameters:

  • Verify that threshold is greater than 0 and less than 251.

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

The server MUST add the threshold to the quota object's list of thresholds.