FILE_POSITION_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTIOAPI_H

/**
 * The FILE_POSITION_INFORMATION structure is used as an argument to routines that query or set file information.
 * \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_file_position_information
 */
typedef struct _FILE_POSITION_INFORMATION
{
    LARGE_INTEGER CurrentByteOffset;
} FILE_POSITION_INFORMATION, *PFILE_POSITION_INFORMATION;

#endif

View code on GitHub
// wdm.h

typedef struct _FILE_POSITION_INFORMATION {
  LARGE_INTEGER CurrentByteOffset;
} FILE_POSITION_INFORMATION, *PFILE_POSITION_INFORMATION;
View the official Windows Driver Kit DDI reference

NtDoc

This structure is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (ns-wdm-_file_position_information)

_FILE_POSITION_INFORMATION structure

Description

The FILE_POSITION_INFORMATION structure is used as an argument to routines that query or set file information.

Members

CurrentByteOffset

The byte offset of the current file pointer.

Remarks

FILE_READ_DATA or FILE_WRITE_DATA access to the file is required to change this information about the file, and the file must be opened for synchronous I/O.

If the file was opened or created with the FILE_NO_INTERMEDIATE_BUFFERING option, the value of CurrentByteOffset must be an integral multiple of the sector size of the underlying device.

See also

ZwCreateFile

ZwSetInformationFile