New_MBR

This function lays down a new MBR on the specified drive.


#include <lvm_intr.h>

void _System New_MBR(

    ADDRESS      Drive_Handle,   /* (I) Handle of the drive where the new MBR will be placed */
    CARDINAL32 * Error_Code      /* (O) Address where the error code will be stored */

);

Parameters

Drive_Handle
The handle of the drive on which the new MBR is to be placed.
Error_Code
The address of a CARDINAL32 in which to store an error code should an error occur.

Returns

N/A.

Errors

If an error occurs, then the existing MBR is not altered, and the value pointed to by Error_Code will be > 0.

Side Effects

A new MBR may be placed on the specified drive. Any existing boot sector code within the MBR on that drive will be replaced with the standard OS/2 MBR code.

Notes

None.

16-Bit Equivalent:

void _Far16 _Pascal _loadds NEW_MBR16(
        CARDINAL32          Drive_Handle,
        CARDINAL32 * _Seg16 Error_Code
);