MSCEFileCtl Constants

Team-Fly    

 
eMbedded Visual Basic: Windows CE and Pocket PC Mobile Applications
By Chris Tacke, Timothy Bassett
Table of Contents
appendix A.  Control Reference


The following tables list the constants used by the File and FileSystem controls and their underlying values.

Table A.28. FileAccessEnum Constants
Constant Value Description
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
Constant Value Description
FsAttrNormal 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
Constant Value Description
FsLockReadWrite 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
Constant Value Description
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.

Team-Fly    
Top
 


eMbedded Visual BasicR. WindowsR CE and Pocket PC Mobile Applications
eMbedded Visual BasicR. WindowsR CE and Pocket PC Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2001
Pages: 108

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net