IOCTL_DISK_UPDATE_PROPERTIES IOCTL (winioctl.h)
Invalidates the cached partition table and re-enumerates the device.
To perform this operation, call the DeviceIoControl function with the following parameters.
BOOL DeviceIoControl( (HANDLE) hDevice, // handle to device IOCTL_DISK_UPDATE_PROPERTIES, // dwIoControlCode NULL, // lpInBuffer 0, // nInBufferSize NULL, // lpOutBuffer 0, // nOutBufferSize (LPDWORD)lpBytesReturned, // lpBytesReturned (LPDWORD) lpOverlapped // lpOverlapped );
This operation is used in synchronizing the system view of the specified disk device when the partition table of the disk is directly modified. Be sure to perform this operation when you update the usable space for a disk so that the system will update its partition table.
You can update the properties of a live volume, and the volume can be open for sharing during the update operation.
You do not need to lock a volume that you are updating, nor do you need to shut down other applications or services during the update operation.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||winioctl.h (include Windows.h)|