Share via


Cancel

Cancels a recording without saving any data.

Syntax

HRESULT Cancel
  ([in] IProfileCollection* pProfileCollection)
;

Parameters

pProfileCollection
[in] A pointer to an IProfileCollection object, which contains a collection of profiles to cancel.

Return Value

The following table describes possible values.

Return Value Description

E_INVALIDARG

The pointer was invalid.

E_WPRC_RUNTIME_STATE_PROFILES_NOT_RUNNING

The profile is not currently running.

ERROR_WMI_INSTANCE_NOT_FOUND

The requested instance was not found.

S_OK

The function successfully returned the IProfileCollection.

IControlManager