13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Open FileReturn valueCommentsthe file. Open File fails if thefile has been opened incompatibility mode or forread access by any otherprocess.OF _SHARE_DENY_WRITE Opens the file and deniesother processes write accessto the file. Open File fails ifthe file has been opened incompatibility or for writeaccess by any other process.OF _SHARE_EXCLUSIVE Opens the file with exclusivemode, denying otherprocesses both read andwrite access to the file.Open File fails if the file hasbeen opened in any othermode for read or writeaccess, even by the currentprocess.Verifies that the date andtime of the file are the sameas when it was previouslyopened. Useful as an extracheck for read-only files.Opens the file for writingonly.The return value specifies a DOS file handle if the function is successful.Otherwise, it is-1.If the IpFileName parameter specifies a filename and extension only, thisfunction searches for a matching file in the following directories:1. The current directory.2. The Windows directory (the directory containing WIN.COM); the Get­WindowsDirectory function obtains the pathname of this directory.3. The Windows system directory (the directory containing such systemfiles as KERNEL.EXE); the GetSystemDirectory function obtains thepathname of this directory.4. Any of the directories listed in the PATH environment variable.448Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!