ResizeVirtualDisk function

Resizes a virtual disk.

Syntax


DWORD WINAPI ResizeVirtualDisk(
  _In_     HANDLE                          VirtualDiskHandle,
  _In_     RESIZE_VIRTUAL_DISK_FLAG        Flags,
  _In_     PRESIZE_VIRTUAL_DISK_PARAMETERS Parameters,
  _In_opt_ LPOVERLAPPED                    Overlapped
);

Parameters

VirtualDiskHandle [in]

Handle to an open virtual disk.

Flags [in]

Zero or more flags enumerated from the RESIZE_VIRTUAL_DISK_FLAG enumeration.

Parameters [in]

Address of a RESIZE_VIRTUAL_DISK_PARAMETERS structure containing the new size of the virtual disk.

Overlapped [in, optional]

If this is to be an asynchronous operation, the address of a valid OVERLAPPED structure.

Return value

Status of the request.

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is an error code. For more information, see System Error Codes.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

VirtDisk.h (include Windows.h)

Library

VirtDisk.lib

DLL

VirtDisk.dll

See also

VHD Functions
RESIZE_VIRTUAL_DISK_PARAMETERS
RESIZE_VIRTUAL_DISK_FLAG

 

 

Show: