ISBE2FileScan::RepairFile 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.]

Repairs a corrupted .WTV file.

You can use this method if you discover possible corruption in a .WTV file and want to restore the last-known good version of the file. The following situations might result in a corrupted file:

  • A process that was creating the file crashed.
  • Another process was writing to the file (for example, to update metadata) at the same time that the Stream Buffer Engine (SBE) attempted to repair it. SBE tries to fix corrupted .WTV files automatically every time it loads a .WTV file for playback and discovers errors in the file.

Syntax

HRESULT RepairFile(
  [in] LPCWSTR filename
);

Parameters

[in] filename

A pointer to a null-terminated wide-character string that specifies the full path name of the .WTV file.

Return value

Returns an HRESULT value. Possible values include the following.

Return value Description
S_OK
Success.
E_POINTER
Null pointer argument.
INVALID_HANDLE_VALUE
Invalid .WTV file.

Requirements

Requirement Value
Minimum supported client Windows�7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header sbe.h
DLL Sbe.dll

See also

ISBE2FileScan