IFsrmReportJob::WaitForCompletion method

Waits for the reports in the job to complete.

Syntax


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

Parameters

waitSeconds [in]

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.

completed [out]

Is VARIANT_TRUE if the reports completed; otherwise, VARIANT_FALSE.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

E_INVALIDARG

The number of seconds to wait is not valid. The value must be in the range from –1 through 2,147,483.

 

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmReports.h

DLL

SrmSvc.dll

IID

IID_IFsrmReportJob is defined as 38e87280-715c-4c7d-a280-ea1651a19fef

See also

IFsrmReportJob
IFsrmReportJob::Run

 

 

Show:
© 2014 Microsoft