IoSetSystemPartition function (ntddk.h)
The IoSetSystemPartition routine sets the boot partition for the system.
Syntax
NTSTATUS IoSetSystemPartition(
[in] PUNICODE_STRING VolumeNameString
);
Parameters
[in] VolumeNameString
Pointer to a Unicode string that specifies the MS-DOS name of the system partition.
Return value
STATUS_SUCCESS if the boot partition can be set, or an error code on failure.
Remarks
The specified partition must contain the boot loader.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows XP and later versions of Windows. |
Target Platform | Universal |
Header | ntddk.h (include Ntddk.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |