Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Specifies how to open or create a file.
Syntax
typedef enum __MIDL___MIDL_itf_mfobjects_0000_0018_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
MF_OPENMODE_FAIL_IF_NOT_EXISTValue: 0 Open an existing file. Fail if the file does not exist. |
MF_OPENMODE_FAIL_IF_EXISTValue: 1 Create a new file. Fail if the file already exists. |
MF_OPENMODE_RESET_IF_EXISTValue: 2 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_EXISTValue: 3 If the file does not exist, create a new file. If the file exists, open it. |
MF_OPENMODE_DELETE_IF_EXISTValue: 4 Create a new file. If the file exists, overwrite the file. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Header | mfobjects.h (include Mfidl.h) |