Boot_Manager_Is_Installed

This function indicates whether or not Boot Manager is installed on the first or second hard drives in the system.


#include <lvm_intr.h>

BOOLEAN _System Boot_Manager_Is_Installed(

    BOOLEAN *    Active,      /* (O) Address where the Boot Manager active status will be stored */
    CARDINAL32 * Error_Code   /* (O) Address where the error code will be stored */

);

Parameters

Active
Address of a BOOLEAN which will indicate whether or not an active copy of Boot Manager was found. This value will be TRUE if Boot Manager is installed and active. If Boot Manager is installed but inactive, this value will be FALSE.

If Boot Manager is not installed, this value is undefined.

Error_Code
The address of a CARDINAL32 in which to store an error code should an error occur.

Returns

The function returns TRUE if Boot Manager is found on one of the first two hard drives in the system. In this case, the value pointed to by Active will indicate (TRUE or FALSE) whether or not this copy of Boot Manager is active.

FALSE is returned if Boot Manager is not found or if an error occurs. In this case, the value pointed to by Active is undefined.

Errors

If an error occurs, the value pointed to by Error_Code will be greater than 0.

Side Effects

None.

Notes

The current OS/2 implementation of this function is unreliable, and calling it may cause a segmentation fault in some circumstances. If an application needs to determine whether or not Boot Manager is installed, it should use the Get_Boot_Manager_Handle function instead.

16-Bit Equivalent:

BOOLEAN _Far16 _Pascal _loadds BOOT_MANAGER_IS_INSTALLED16(
        BOOLEAN * _Seg16    Active,
        CARDINAL32 * _Seg16 Error_Code
);