共用方式為


IStreamBufferRecordControl::GetRecordingStatus

 
Microsoft DirectShow 9.0

IStreamBufferRecordControl::GetRecordingStatus

This topic applies only to Windows XP Service Pack 1 or later.

The GetRecordingStatus method retrieves the status of the recording.

Syntax

  HRESULT GetRecordingStatus(
  HRESULT*  
  phLastResult,
  BOOL*  pbStarted,
  BOOL*  pbStopped
);

Parameters

phLastResult

[out]  Pointer to a variable that receives an HRESULT value. The HRESULT value indicates the current status of writing or closing the file. This parameter can be NULL.

pbStarted

[out]  Pointer to a variable that receives a Boolean value, indicating whether the recording has started,

Value Description
TRUE The recording has started.
FALSE The recording has not started.

This parameter can be NULL.

pbStopped

[out]  Pointer to a variable that receives a Boolean value, indicating whether recording has been stopped.

Value Description
TRUE The recording has stopped.
FALSE The recording has not stopped, or has not started yet.

This parameter can be NULL.

Return Values

Returns an HRESULT. Possible values include those in the following table.

Value Description
S_OK The method succeeded.

Remarks

This method reports the status of the Start and Stop methods, which themselves are asynchronous.

Requirements

Header: Include Sbe.h.

See Also