FSCTL_QUERY_REFS_SMR_VOLUME_INFO - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// winioctl.h

// CTL_CODE(0x0009, 0x0f7, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSCTL_QUERY_REFS_SMR_VOLUME_INFO 0x000903DC
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (fsctl-query-refs-smr-volume-info)

FSCTL_QUERY_REFS_SMR_VOLUME_INFO control code

The FSCTL_QUERY_REFS_SMR_VOLUME_INFO control code queries the Shingled Magnetic Recording (SMR) volume for its current state on space and garbage collection activities.

To perform this operation, call the DeviceIoControl function with the following parameters.

BOOL
DeviceIoControl( (HANDLE)       hDevice,         // handle to device
                    (DWORD)        FSCTL_QUERY_REFS_SMR_VOLUME_INFO, // dwIoControlCode
                    (LPDWORD)      lpInBuffer,      // input buffer
                    (DWORD)        nInBufferSize,   // size of input buffer
                    (LPDWORD)      lpOutBuffer,     // output buffer
                    (DWORD)        nOutBufferSize,  // size of output buffer
                    (LPDWORD)      lpBytesReturned, // number of bytes returned
                    (LPOVERLAPPED) lpOverlapped );  // OVERLAPPED structure

Parameters

Return value

If the operation completes successfully, DeviceIoControl returns a nonzero value.

If the operation fails or is pending, DeviceIoControl returns zero. To get extended error information, call GetLastError.

Requirements

Requirement type Requirement
Minimum supported client Windows Windows 10, version 1709
Header WinIoctl.h

See also

DeviceIoControl

REFS_SMR_VOLUME_INFO_OUTPUT

REFS_SMR_VOLUME_GC_STATE