SPFILEMODE (SAPI 5.4)
Microsoft Speech API 5.4
SPFILEMODE
SPFILEMODE lists the file opening state used by ISpStream::BindToFile and the helper function SPBindToFile.
typedef enum SPFILEMODE
{
SPFM_OPEN_READONLY,
SPFM_OPEN_READWRITE,
SPFM_CREATE,
SPFM_CREATE_ALWAYS,
SPFM_NUM_MODES
} SPFILEMODE;
Elements
- SPFM_OPEN_READONLY
Opens the existing file in read-only mode. This will fail if the file does not exist. - SPFM_OPEN_READWRITE
Opens the existing file in read-write mode. This will fail if the file does not exist. - SPFM_CREATE
Opens the file if one exists, or creates the file if one does not exist. This flag indicates that the file will be opened in read-write mode. - SPFM_CREATE_ALWAYS
Creates the file, even if the file already exists and deletes the previous file. This flag indicates that the file will be opened in read-write mode. - SPFM_NUM_MODES
This flag is used for limit checking.