Install_Boot_Manager

This function installs Boot Manager. It can also be used to replace an existing copy of Boot Manager.


#include <lvm_intr.h>

void _System Install_Boot_Manager (

    CARDINAL32   Drive_Number,   /* (I) Drive number (1 or 2) to install Boot Manager on */
    CARDINAL32 * Error_Code      /* (O) Address where the error code will be stored */

);

Parameters

Drive_Number
The number of the drive on which Boot Manager is to be installed. Only a value of 1 or 2 is supported.
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, the value pointed to by Error_Code will be greater than 0. Depending upon the error (such as for a write error), it is possible that the Boot Manager partition could be left in an unusuable state.

Side Effects

Boot Manager may be installed on drive 1 or 2. The MBR for drive 1 may be altered.

Notes

None.

16-Bit Equivalent:

void _Far16 _Pascal _loadds INSTALL_BOOT_MANAGER16(
        CARDINAL32          Drive_Number,
        CARDINAL32 * _Seg16 Error_Code
);