MergeShutdownRecording

Merges recordings collected during last shutdown.

Syntax

HRESULT MergeShutdownRecording
  ([in] BSTR bstrFileName,
  [in] IProfileCollection* pProfileCollection,
  [in] ITraceMergeProperties* pTraceMergeProperties)
;

Parameters

bstrFileName
[in] Indicates the name of the Event Tracing for Windows (ETL) file being logged.

pProfileCollection
[in] A pointer to an IProfileCollection object.

pTraceMergeProperties
[in] A pointer to an ITraceMergeProperties object.

Return Value

The following table describes possible return values.

Return Value Description

E_POINTER

At least one of the function arguments is null.

E_WPRC_INVALID_MERGESHUTDOWN_OPERATION

Indicates an unsuccessful operation. This can occur if no shutdown recording ran during the last shutdown.

E_WPRC_RUNTIME_STATE_PROFILES_NOT_RUNNING

Indicates that the profile is not running. This can occur if no shutdown recording ran during the last shutdown.

S_OK

The function successfully merged the shutdown recording.

IOnOffTransitionManager