Share via


IStreamBufferConfigure::SetDirectory 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 SetDirectory method sets the directory where backing files are saved.

Syntax

HRESULT SetDirectory(
  [in] LPCWSTR pszDirectoryName
);

Parameters

[in] pszDirectoryName

Pointer to a null-terminated string containing the fully qualified directory name. If the specified directory does not exist, it will be created.

Return value

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

Return code Description
E_UNEXPECTED
The StreamBufferConfig object was not initialized.
S_OK
The method succeeded.

Remarks

Before calling this method, call IStreamBufferInitialize::SetHKEY to specify a registry key where the information will be stored.

The specified directory is used to store backing files. If no directory is specified, the files are saved in a hidden system directory inside the Temp directory. This directory is not used to store files created by Recording objects; those files are stored in a directory specified by the IStreamBufferSink::CreateRecorder method.

Backing files are created as hidden sytem files.

Requirements

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

See also

IStreamBufferConfigure Interface