Export (0) Print
Expand All

IFsrmClassificationManager::WaitForClassificationCompletion method

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMClassification class.]

Waits for the specified period of time or until classification has finished running.

Syntax


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

Parameters

waitSeconds [in]

The number of seconds to wait for classification and the reports to complete. The method returns when the period expires or classification and the reports complete. To wait indefinitely, set the value to –1. The value must be in the range from –1 through 2,147,483.

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.

FSRM_E_CLASSIFICATION_NOT_RUNNING

The classification is not running.

 

Remarks

To run the classification, call the IFsrmClassificationManager::RunClassification method.

After WaitForClassificationCompletion returns, access the IFsrmClassificationManager.ClassificationLastError property to determine if the reports completed successfully.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

Header

FsrmPipeline.h (include FsrmPipeline.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmClassificationManager is defined as b15c0e47-c391-45b9-95c8-eb596c853f3a

IID

IID_IFsrmClassificationManager is defined as d2dc89da-ee91-48a0-85d8-cc72a56f7d04

IID_IFsrmClassificationManager2 is defined as 0004c1c9-127e-4765-ba07-6a3147bca112

See also

IFsrmClassificationManager2
IFsrmClassificationManager
IFsrmClassificationManager.ClassificationRunningStatus
FsrmClassificationManager
MSFT_FSRMClassification

 

 

Show:
© 2014 Microsoft