SHRINK_VOLUME_INFORMATION - NtDoc

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

typedef struct _SHRINK_VOLUME_INFORMATION {
  SHRINK_VOLUME_REQUEST_TYPES ShrinkRequestType;
  DWORDLONG                   Flags;
  LONGLONG                    NewNumberOfSectors;
} SHRINK_VOLUME_INFORMATION, *PSHRINK_VOLUME_INFORMATION;
View the official Win32 API reference

NtDoc

No description available.

Win32 API reference (ns-winioctl-shrink_volume_information)

SHRINK_VOLUME_INFORMATION structure

Description

Specifies the volume shrink operation to perform.

Members

ShrinkRequestType

Indicates the operation to perform. The valid values are as follows.

Value Meaning
ShrinkPrepare Volume should perform any steps necessary to prepare for a shrink operation.
ShrinkCommit Volume should commit the shrink operation changes.
ShrinkAbort Volume should terminate the shrink operation.

Flags

This member must be zero.

NewNumberOfSectors

The number of sectors that should be in the shrunken volume. Used only when the ShrinkRequestType member is ShrinkPrepare, otherwise this member should be initialized to zero.

See also

FSCTL_SHRINK_VOLUME