Delete_Partition

This function deletes the specified partition.


#include <lvm_intr.h>

void _System Delete_Partition(

    ADDRESS      Partition_Handle,    /* (I) Handle of the partition to be deleted */
    CARDINAL32 * Error_Code           /* (O) Address where the error code will be stored */

);

Parameters

Partition_Handle
The handle associated with the partition to be deleted.
Error_Code
The address of a CARDINAL32 in which to store an error code should an error occur.

Returns

N/A.

Errors

If the partition cannot be deleted, then the value pointed to by Error_Code will be greater than 0.

If Partition_Handle is not a valid handle, a trap may result.

If Partition_Handle is the handle of a volume or disk, then this function will abort, and the value pointed to by Error_Code will be non-zero.

Side Effects

A partition on a disk drive may be deleted.

Notes

A partition cannot be deleted if it is part of a volume. The Delete_Volume function must be used in that case instead.

16-Bit Equivalent:

void _Far16 _Pascal _loadds DELETE_PARTITION16(
        CARDINAL32          Partition_Handle,
        CARDINAL32 * _Seg16 Error_Code
);