mi32/fileaccess.h File Reference
<mi32/fileaccess.h>
More...
Go to the source code of this file.
Enumerations |
| enum | FILE_ACCESS {
FILE_ACCESS_Read = 0x01,
FILE_ACCESS_Write = 0x02,
FILE_ACCESS_ReadWrite = 0x03,
FILE_ACCESS_Create = 0x04,
FILE_ACCESS_Append = 0x08,
FILE_ACCESS_ReadNoCache = 0x11,
FILE_ACCESS_WriteNoCache = 0x12,
FILE_ACCESS_ReadWriteNoCache = 0x13,
FILE_ACCESS_CreateNoCache = 0x14
} |
| enum | FILE_SHARE { FILE_SHARE_Any = 0x00,
FILE_SHARE_Exclusive = 0x01,
FILE_SHARE_ReadOnly = 0x02,
FILE_SHARE_Auto = 0x04
} |
Detailed Description
<mi32/fileaccess.h>
File access mode definitions
Enumeration Type Documentation
File access modes.
- Enumerator:
| FILE_ACCESS_Read |
Open for reading.
|
| FILE_ACCESS_Write |
Open for writing, create if does not exist, retains contents if exists.
|
| FILE_ACCESS_ReadWrite |
Open for both reading and writing, will create if does not exist.
|
| FILE_ACCESS_Create |
Create or truncate.
|
| FILE_ACCESS_Append |
Append to file, may limit writing to end of file.
|
| FILE_ACCESS_ReadNoCache |
Open for reading, OS cache is disabled, buffer must be aligned.
|
| FILE_ACCESS_WriteNoCache |
Open for writing, create if does not exist, retains contents if exists, OS cache is disabled, buffer must be aligned.
|
| FILE_ACCESS_ReadWriteNoCache |
Open for both reading and writing, will create if does not exist.
|
| FILE_ACCESS_CreateNoCache |
Create or truncate, OS cache is disabled, buffer must be aligned.
|
File sharing modes.
- Enumerator:
| FILE_SHARE_Any |
|
| FILE_SHARE_Exclusive |
This process has exclusive access.
|
| FILE_SHARE_ReadOnly |
File can be shared as read-only.
|
| FILE_SHARE_Auto |
Determine share mode as Read if FILE_ACCESS_Read and Exclusive if FILE_ACCESS_Write.
|