Share via


IFileSinkFilter2::SetMode

Send Feedback

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

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 Values

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

Requirements

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

For more information, see Setting Up the Build Environment.

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later
Header:

See Also

IFileSinkFilter2 Interface | AM_FILESINK_FLAGS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.