Partager via


IFileSinkFilter2::SetMode (Compact 2013)

3/26/2014

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

Syntax

HRESULT SetMode(
  DWORD dwFlags
);

Parameters

  • dwFlags
    [in] Pointer to a DWORD value containing the flags to be set. Currently, the only defined flag is AM_FILE_OVERWRITE (see AM_FILESINK_FLAGS), which indicates that the file writer should destroy the file. Specify zero for dwFlags to leave the file alone.

Return Value

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

Remarks

DirectShow applications and DirectShow filters have different include file and link library requirements.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IFileSinkFilter2 Interface
AM_FILESINK_FLAGS