Typedefs | |
typedef ::HANDLE | Handle |
Win32 file handle type. More... | |
Enumerations | |
enum | ErrorCodes { errOk, errGeneric, errNotSupported, errAlreadyExists, errCantTruncate } |
Functions | |
int | close (Handle handle) |
close a file. More... | |
int | seek (Handle handle, long offset, int mode, long &pos) |
moves the file pointer of an open file. More... | |
int | setEof (Handle handle) |
set EOF to current position. More... | |
int | init () |
init files PAL. More... | |
int | cleanup () |
cleanup files PAL. More... | |
int | open (Handle &handle, const char *name, int flags, int shareFlags) |
open/create a file. More... | |
int | write (Handle handle, const void *buff, long count, long &written) |
write data to a file. More... | |
int | read (Handle handle, void *buff, long count, long &read) |
read data from a file. More... | |
int | flush (Handle handle) |
flush file buffers. More... | |
const char * | message (int index) |
return the message coresponding to a return code. More... | |
Variables | |
const int | MAX_ERROR_CODE = 4 |
const char * | messagesTable [MAX_ERROR_CODE+1] |
const Handle | NULL_HANDLE = INVALID_HANDLE_VALUE |
a handle value designating an invalid handle. More... | |
const int | seekSet = 0x0001 |
seek mode. More... | |
const int | seekCurrent = 0x0002 |
seek mode. More... | |
const int | seekEnd = 0x0004 |
seek mode. More... | |
const int | flAppend = 0x0001 |
open mode. More... | |
const int | flRead = 0x0002 |
open mode. More... | |
const int | flWrite = 0x0004 |
open mode. More... | |
const int | flTruncate = 0x0008 |
open mode. More... | |
const int | flOpenExisting = 0x0010 |
open mode. More... | |
const int | flCreateNew = 0x0020 |
open mode. More... | |
const int | flTemp = 0x0040 |
open mode. More... | |
const int | shRead = 0x0001 |
share mode. More... | |
const int | shWrite = 0x0002 |
share mode. More... |
need testing
|
Win32 file handle type.
|
|
|
|
close a file.
|
|
moves the file pointer of an open file.
|
|
set EOF to current position.
|
|
init files PAL.
|
|
cleanup files PAL.
|
|
open/create a file.
|
|
write data to a file.
|
|
read data from a file.
|
|
flush file buffers.
|
|
return the message coresponding to a return code.
|
|
|
|
Initial value: { "win32PAL::files -- No error (ok)", "win32PAL::files -- Generic error", "win32PAL::files -- Not supported", "win32PAL::files -- Already exists", "win32PAL::files -- Can't truncate", } |
|
a handle value designating an invalid handle.
|
|
seek mode.
|
|
seek mode.
|
|
seek mode.
|
|
open mode.
|
|
open mode.
|
|
open mode.
|
|
open mode.
|
|
open mode.
|
|
open mode.
|
|
open mode.
|
|
share mode.
|
|
share mode.
|