// winioctl.h
// CTL_CODE(0x0009, 0x09f, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSCTL_GET_INTEGRITY_INFORMATION 0x0009027C
View the official Win32 API referenceNo description available.
Retrieves the integrity status of a file or directory on a ReFS volume.
To perform this operation, call the DeviceIoControl function with the following parameters.
BOOL DeviceIoControl(
(HANDLE) hDevice, // handle to file or directory
FSCTL_GET_INTEGRITY_INFORMATION, // dwIoControlCode
(LPDWORD) NULL, // pInBuffer
(DWORD) 0, // InBufferSize
(LPDWORD) pOutBuffer, // FSCTL_GET_INTEGRITY_INFORMATION_BUFFER
(DWORD) OutBufferSize, // size of output buffer
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.
Otherwise, Status to the appropriate error condition as a NTSTATUS code.
For more information, see NTSTATUS Values.