FSCTL_LMR_QUERY_INFO IOCTL (ntifs.h)

The FSCTL_LMR_QUERY_INFO control code retrieves the desired information for a remote file or directory opened locally.

Major code

FSCTL_LMR_QUERY_INFO

Remarks

To perform this operation, call FltFsControlFile or ZwFsControlFile with the following parameters.

  • FileObject [in]: Parameter for FltFsControlFile only. A file object pointer for the remote volume. This parameter is required and can't be NULL.

  • FileHandle [in]: Parameter for ZwFsControlFile only. A handle for the remote volume. This parameter is required and can't be NULL.

  • FsControlCode [in]: A control code for the operation. Use FSCTL_LMR_QUERY_INFO for this operation.

  • InputBuffer [in]: Pointer to a LMR_QUERY_INFO_PARAM structure that contains the type of information to be queried.

  • InputBufferLength [in]: The size, in bytes, of the buffer pointed to by InputBuffer. This value is sizeof(LMR_QUERY_INFO_PARAM).

  • OutputBuffer [out]: A pointer to a buffer that receives the desired information about the file or directory. The structure of the information returned in the output buffer is defined by the Operation specified in InputBuffer's LMR_QUERY_INFO_PARAM structure.

  • OutputBufferLength [out]: The size, in bytes, of the buffer pointed to by OutputBuffer.

FltFsControlFile or ZwFsControlFile returns STATUS_SUCCESS if the operation succeeds. Otherwise, the appropriate function returns the appropriate NTSTATUS error code.

Requirements

Requirement Value
Minimum supported client Windows 10 version 1809, and Windows 10 version 2004 and above versions
Minimum supported server Windows Server 2019
Header ntifs.h

See also

FltFsControlFile

ZwFsControlFile