IoVerifyPartitionTable function (ntddk.h)

The IoVerifyPartitionTable routine checks the validity of the partition table for a disk.

Syntax

NTSTATUS IoVerifyPartitionTable(
  [in] PDEVICE_OBJECT DeviceObject,
  [in] BOOLEAN        FixErrors
);

Parameters

[in] DeviceObject

Specifies the device object of the disk to verify.

[in] FixErrors

Specifies if the routine should correct any correctable errors in the partition table.

Return value

The routine returns STATUS_SUCCESS if the partition table is error-free.

If the caller specifies FALSE for the FixErrors parameter and the partition table has errors, the routine returns STATUS_DISK_CORRUPT_ERROR. If the caller specifies TRUE for FixErrors, and the routine is able to correct all errors in the partition table, it returns STATUS_SUCCESS. Otherwise it returns STATUS_DISK_CORRUPT_ERROR.

The routine might also return other NT status error codes.

Remarks

IoVerifyPartitionTable must be used only by disk drivers.

Requirements

Requirement Value
Minimum supported client Available starting with Windows XP.
Target Platform Universal
Header ntddk.h (include Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL