Freigeben über


SPFILEMODE (Windows CE 5.0)

Send Feedback

This enumeration defines file opening states. They are 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
    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

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.

See Also

SAPI Enumerations

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.