FNFCISEEK macro (fci.h)

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

void FNFCISEEK(
   fn
);

Parameters

fn

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

Return value

None

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

Requirement Value
Target Platform Windows
Header fci.h

See also

FCICreate