hFile (HFILE) - input

      The handle returned by a previous DosOpen function.

    ib (LONG) - input

      The signed distance (offset) to move, in bytes.

    method (ULONG) - input

      The method of moving.

      Specifies a location in the file from where the ib to move the read/write pointer starts. The values and their meanings are described in the following list:

    • FILE_BEGIN Move the pointer from the beginning of the file.

    • FILE_CURRENT
      Move the pointer from the current location of the read/write pointer.

    • FILE_END
      Move the pointer from the end of the file. Use this method to determine a file's size.

    ibActual (PULONG) - output

      Address of the new pointer location.

    ulrc (APIRET) - returns

      Return Code.

      DosSetFilePtr returns one of the following values:

    • NO_ERROR 1
        ERROR_INVALID_FUNCTION
      6
        ERROR_INVALID_HANDLE
      132
        ERROR_SEEK_ON_DEVICE
      131
        ERROR_NEGATIVE_SEEK
      130
        ERROR_DIRECT_ACCESS_HANDLE
      For a full list of error codes, see Errors.


    [Back] [Next]