다음을 통해 공유


IStreamBufferRecComp::Initialize method (sbe.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

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

[in] pszTargetFilename

Null-terminated, wide character string that specifies the file name of the new recording.

[in] pszSBRecProfileRef

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

Requirement Value
Minimum supported client Windows�XP with SP1 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header sbe.h

See also

IStreamBufferRecComp Interface