3.2.4.15.9 CreateDataCollector (Opnum 15)

The CreateDataCollector method creates a data collector of the specified type.

 HRESULT CreateDataCollector(
   [in] DataCollectorType Type,
   [out, retval] IDataCollector** Collector
 );

Type: Supplies the type of data collector to create. For possible data collector types, see the DataCollectorType enumeration in section 2.2.2.5.

Collector: Receives the newly created data collector.

Return Values: This method MUST return an HRESULT with the severity bit clear on success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.