Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NtManagePartition function (wdm.h)

The NtManagePartition function gets and sets information for a partition.

Syntax

__kernel_entry NTSYSCALLAPI NTSTATUS NtManagePartition(
 [in] HANDLE TargetHandle,
 [in, optional] HANDLE SourceHandle,
 [in] PARTITION_INFORMATION_CLASS PartitionInformationClass,
 [in, out] PVOID PartitionInformation,
 [in] ULONG PartitionInformationLength
);

Parameters

[in] TargetHandle

Supplies a handle to a partition.

[in, optional] SourceHandle

Optionally supplies a handle to a source partition. This handle is only used for particular information classes.

[in] PartitionInformationClass

Supplies the partition object information class which is to be managed.

[in, out] PartitionInformation

Supplies a pointer to a buffer which contains the specified information. The format and content of the buffer depends on the partition class.

[in] PartitionInformationLength

Supplies the length, in bytes, of the partition information buffer.

Return value

Returns an appropriate NTSTATUS value.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header wdm.h

Feedback

Was this page helpful?

Additional resources