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.

FNSEEK macro

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

Syntax


void FNSEEK(
  [in] INT_PTR hf,
       long    dist,
       int     seektype
);

Parameters

hf [in]

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 move.

Return value

The indicated callback function returns the offset, in bytes, of the new position from the beginning of the file. However, a value of -1 indicates an error.

Remarks

The function accepts parameters similar to _lseek.

Examples


FNSEEK(fnFileSeek)
{
    return SetFilePointer((HANDLE)hf, dist, NULL, seektype);
}


Requirements

Header

Fdi.h

See also

FDICreate

 

 

Show: