eMbedded Visual Basic®: Windows® CE and Pocket PC Mobile Applications By
Chris Tacke, Timothy Bassett | Table of Contents |
|
appendix A.
Control Reference |
MSCEFileCtl Constants
The following tables list the constants used by the File and FileSystem controls and their underlying values.
Table A.28. FileAccessEnum Constants|
FsAccessRead
| 1
| Indicates that a file was opened in read-only mode (input).
| FsAccesWrite
| 2
| Indicates that a file was opened in write-only mode (output).
| FsAccessReadWrite
| 3
| Indicates that a file was opened in read/write mode (input-output).
|
Table A.29. FileAttrEnum Constants|
FsAttrNormal
| 0
| Indicates a normal file.
| FsAttrReadOnly
| 1
| Indicates a file or directory marked as read-only.
| FsAttrHidden
| 2
| Indicates a file or directory marked as hidden.
| FsAttrSystem
| 4
| Indicates a system file.
| FsAttrVolume
| 8
| Indicates a volume set.
| FsAttrDirectory
| 16
| Indicates a directory.
| FsAttrArchive
| 32
| Indicates a file has changed since last backup.
|
Table A.30. FileLockEnum Constants|
FsLockReadWrite
| 0
| Indicates other processes may read or write to the file when it is open.
| FsLockWrite
| 1
| Indicates other processes may write to a file while it is open.
| FsLockRead
| 2
| Indicates other processes may read from a file while it is open.
| FsLockShared
| 3
| Indicates that a file is opened by multiple processes.
|
Table A.31. FileModeEnum Constants|
FsModeInput
| 1
| Used to open a file for sequential text input.
| FsModeOutput
| 2
| Used to open a file for sequential text output. The read/write position is set to the beginning of the file.
| FsModeRandom
| 4
| Used to open a file for random binary access.
| FsModeAppend
| 8
| Used to open a file for sequential text output. The read/write position is set to the end of the file.
| FsModeBinary
| 32
| Used to open a file for binary access.
|
|