Share via


IStreamBufferRecComp::Initialize Method

The Initialize method sets the file name and the profile for the new recording. Call this method once, after creating the RecComp object.

Syntax

HRESULT Initialize(
  [in]  LPCWSTR pszTargetFilename,
  [in]  LPCWSTR pszSBRecProfileRef
);

Parameters

  • pszTargetFilename [in]
    Null-terminated, wide character string that specifies the file name of the new recording.

  • pszSBRecProfileRef [in]
    Null-terminated, wide character string that specifies an existing file. This file must be a complete recording, already created by the Stream Buffer Engine.

Return Value

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

Return code Description

S_OK

Success

Remarks

The profile of the file specified by pszSBRecProfileRef will be used for the target file. All files that are appended to the target file must have the same profile. For more information about profiles, see IStreamBufferSink::LockProfile.

Requirements

Header Declared in Sbe.h.

See Also

IStreamBufferRecComp Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008