SPFILEMODE (Windows Embedded CE 6.0)
1/6/2010
This enumeration defines file opening states. They are used by ISpStream::BindToFile and the helper function SPBindToFile.
Syntax
typedef enum SPFILEMODE{
SPFM_OPEN_READONLY,
SPFM_OPEN_READWRITE,
SPFM_CREATE,
SPFM_CREATE_ALWAYS,
SPFM_NUM_MODES
} SPFILEMODE;
Elements
- SPFM_OPEN_READONLY
Open the existing file in read-only mode. This operation fails if the file does not exist.
- SPFM_OPEN_READWRITE
Open the existing file in read/write mode. This operation fails if the file does not exist.
- SPFM_CREATE
Open the file if one exists, or create the file if one does not exist. A file is opened in read/write mode.
- SPFM_CREATE_ALWAYS
Create the file, even if it already exists, and delete the previous file. A file is opened in read/write mode.
- SPFM_NUM_MODES
Limit checking.
Requirements
Header | sapi.h, sapi.idl |
Windows Embedded CE | Windows CE .NET 4.1 and later |