MF_FILE_OPENMODE Enumeration

Specifies how to open or create a file.

Syntax

typedef enum __MIDL___MIDL_itf_mfobjects_0000_0017_0002
{
    MF_OPENMODE_FAIL_IF_NOT_EXIST = 0,
    MF_OPENMODE_FAIL_IF_EXIST = 1,
    MF_OPENMODE_RESET_IF_EXIST = 2,
    MF_OPENMODE_APPEND_IF_EXIST = 3,
    MF_OPENMODE_DELETE_IF_EXIST = 4
} MF_FILE_OPENMODE;  

Constants

Constant Description
MF_OPENMODE_FAIL_IF_NOT_EXIST Open an existing file. Fail if the file does not exist.
MF_OPENMODE_FAIL_IF_EXIST Create a new file. Fail if the file already exists.
MF_OPENMODE_RESET_IF_EXIST Open an existing file and truncate it, so that the size is zero bytes. Fail if the file does not already exist.
MF_OPENMODE_APPEND_IF_EXIST If the file does not exist, create a new file. If the file exists, open it.
MF_OPENMODE_DELETE_IF_EXIST Create a new file. If the file exists, overwrite the file.

Requirements

Header: Declared in mfobjects.h.