Share via


IFileSinkFilter2::SetMode

 
Microsoft DirectShow 9.0

IFileSinkFilter2::SetMode

The SetMode method determines whether the file writer destroys the file when it creates the new one.

Syntax

  HRESULT SetMode(
  DWORD dwFlags
);

Parameters

dwFlags

[in] Currently, the only defined flag is AM_FILE_OVERWRITE, which indicates that the file writer should destroy the file. Specify zero for dwFlags to leave the file alone.

Return Values

Returns an HRESULT value that depends on the implementation of the interface.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also