IFsrmReportJob::WaitForCompletion method (fsrmreports.h)

Waits for the reports in the job to complete.

Syntax

HRESULT WaitForCompletion(
  [in]  long         waitSeconds,
  [out] VARIANT_BOOL *completed
);

Parameters

[in] waitSeconds

The number of seconds to wait for the reports to complete. The method returns when the period expires or the reports complete. To wait indefinitely, set the value to –1.

[out] completed

Is VARIANT_TRUE if the reports completed; otherwise, VARIANT_FALSE.

Return value

The method returns the following return values.

Remarks

To run the job, call the IFsrmReportJob::Run method.

After WaitForCompletion returns, access the IFsrmReportJob::LastError property to determine if the reports completed successfully.

Examples

For an example, see Running a Report Job.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header fsrmreports.h
DLL SrmSvc.dll

See also

IFsrmReportJob

IFsrmReportJob::Run