Get_Reserved_Drive_Letters

This function returns a bitmap indicating which drive letters are reserved for use by devices not under the control of LVM.


#include <lvm_intr.h>

CARDINAL32 _System Get_Reserved_Drive_Letters(

    CARDINAL32 * Error_Code   /* (O) Address where the error code will be stored */

);

Parameters

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

Returns

This function returns a bitmap of the drive letters which are being used by devices which are not controlled by LVM. While a volume can be assigned a drive letter from this list, a reboot will almost always be required in order for the assignment to take place.

Drive letters 'A' through 'Z' are represented in the bitmap from right to left. In other words, 'A' is 0x00000001 and 'Z' is 0x02000000.

Errors

If an error occurs, the value pointed to by Error_Code will be > 0, and the returned bitmap will have all bits set to 0.

Side Effects

None.

Notes

Devices which are assigned drive letters but which are NOT under LVM control include: CD-ROM, Network drives, parallel port attached devices, and any DASD devices not controlled by OS2DASD.

16-Bit Equivalent:

CARDINAL32 _Far16 _Pascal _loadds GET_RESERVED_DRIVE_LETTERS16( CARDINAL32 * _Seg16 Error_Code );