NWSetFilePos(3nw)


NWSetFilePos -- sets current offset for reading and writing to specified file

Synopsis

   #include <nwfile.h> 
   or 
   #include <nwcalls.h> 
   

NWCCODE N_API NWSetFilePos (NWFILE_HANDLE fileHandle, nuint mode, nuint32 filePos);

Description

The parameters are as follows:

fileHandle
(IN) Specifies the file handle for which to set the current file position.

mode
(IN) Specifies whether to set the file position at the beginning (SEEK_FROM_BEGINNING 1), current position (SEEK_FROM_CURRENT_OFFSET 2), or end (SEEK_FROM_END 3) of the file.

filePos
(IN) Specifies the offset to be set as the new file position for the given file.

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

0x8836
INVALID_PARAMETER

0x8983
IO_ERROR_NETWORK_DISK

0x8988
INVALID_FILE_HANDLE

0x8994
NO_WRITE_PRIVILEGES_OR_READONLY

0x8995
FILE_DETACHED

0x89A2
READ_FILE_WITH_RECORD_LOCKED

0x89FF
IO_BOUND_ERROR

Services

File I/O

NCP calls

None

References

NWGetFilePos(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.