Download Programmer`s Guide

Transcript
VIM Interface Calls
uShareMode
95
The following flags define how the file may be
accessed by others:
Value
Mnemonic
Comment
0x0000
EXCLUSIVE_ACCESS
Nobody else may access the file
until the file is closed; only a
single instance of the file can
be opened.
0x0001
FILE_SHARE_READ
Anyone else may open the file
to read it.
0x0002
FILE_SHARE_WRITE
Not supported.
You can specify a single flag or the logical sum of the
FILE_SHARE flags.
uCreateDisp The following flags define the process for opening
files:
Value
Mnemonic
Comment
1
CREATE_NEW
Create file if it doesn’t exist. Fail if
it exists.
2
CREATE_ALWAYS
Create File if it doesn’t exist.
Overwrite (destroy) existing file if
it does.
3
OPEN_EXISTING
Open file if its exists. Fail if it
doesn’t exist.
4
OPEN_ALWAYS
Open file if it exists. Create it if it
doesn’t.
5
TRUNCATE_EXISTING
Set file size to 0 if file exists. Fail if
it doesn’t exist.
Specify exactly one of the these flags.
uAttributes The following attributes are defined: