FSCTL_SET_REFS_SMR_VOLUME_GC_PARAMETERS - NtDoc

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

// CTL_CODE(0x0009, 0x0f8, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSCTL_SET_REFS_SMR_VOLUME_GC_PARAMETERS 0x000903E0
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (fsctl-set-refs-smr-volume-gc-parameters)

FSCTL_SET_REFS_SMR_VOLUME_GC_PARAMETERS control code

The FSCTL_SET_REFS_SMR_VOLUME_GC_PARAMETERS control code controls the garbage collection on a Shingled Magnetic Recording (SMR) volume.

BOOL
   DeviceIoControl( (HANDLE)       hDevice,         // handle to volume
                    FSCTL_SET_REFS_SMR_VOLUME_GC_PARAMETERS, // dwIoControlCode
                    (LPDWORD)      lpInBuffer,      // input buffer
                    (DWORD)        nInBufferSize,   // size of input buffer
                     NULL,     // output buffer
                     0,  // 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 10, version 1709
Header WinIoctl.h

See also

DeviceIoControl