3.2.4.2.1.6 WaitForCompletion (Opnum 12)

The WaitForCompletion method limits the time that an asynchronous collection can take to collect the objects. <54>

 [id(FSRM_DISPID_COLLECTION | 0x02)] HRESULT WaitForCompletion(
   [in] long waitSeconds,
   [out, retval] VARIANT_BOOL* completed
 );

waitSeconds: This parameter is ignored.

completed: Pointer to VARIANT_BOOL that upon successful completion contains VARIANT_TRUE.

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

Return value/code

Description

0x80004003

E_POINTER

The completed parameter is NULL

Upon receiving this message, the server MUST validate parameters:

  • Verify that completed is not NULL.

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

The server MUST set completed to VARIANT_TRUE.