Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FNFCISEEK macro

The FNFCISEEK macro provides the declaration for the application-defined callback function to move a file pointer to the specified location in an FCI context.

Syntax


long FNFCISEEK(
   INT_PTR  hf,
   long     dist,
   int      seektype,
   int FAR  *err,
   void FAR *pv
);

Parameters

hf

An application-defined value used to identify the open file.

dist

The number of bytes to move the file pointer.

seektype

The starting point for the file pointer to move.

err

Pointer to the error code value. This value will be used to provide extended error information in the ERF structure used to create the FCI context.

pv

Pointer to an application-defined value.

Return value

The return value is the new file pointer position, or -1 if an error occurs.

Remarks

The function accepts parameters similar to _lseek with the addition to err and pv.

Examples


FNFCISEEK(fnFileSeek)
{
    INT iResult = 0;

    UNREFERENCED_PARAMETER(pv);

    iResult = SetFilePointer((HANDLE)hf, dist, NULL, seektype);

    if ( iResult == -1 )
    {
        *err = GetLastError();
    }

    return iResult;
}


Requirements

Header

Fci.h

See also

FCICreate

 

 

Show: