StartShutdownRecording
Starts shutdown recording.
Syntax
HRESULT StartShutdownRecording
([in] IProfileCollection* pProfileCollection)
;
Parameters
pProfileCollection
[in] Indicates the IProfileCollection object.
Return Value
The following table describes possible return values.
Return Value | Description |
---|---|
S_OK |
The function successfully started the shutdown recording. |
E_POINTER |
At least one of function arguments is null. |
E_WPRC_RUNTIME_STATE_PROFILES_RUNNING |
Recording is already running (it should be stopped/canceled before call to this function). |
E_WPRC_RUNTIME_STATE_BOOT_RECORDING |
Boot recording is already running (it should be stopped/canceled before call to this function). |
E_WPRC_RUNTIME_STATE_EVENT_SESSION_RUNNING |
One of event sessions that should be started is already running. It could be started earlier by some other application (or as a result of WPR state corruption, for example after WPR crash). |
E_WPRC_INVALID_STARTSHUTDOWN_OPERATION |
Invalid profile for shutdown recording (for example, logging mode is memory, but only file supported for shutdown). |