get_drive_type


template <class character>
unsigned get_drive_type(const character* root)

This function obtains the type of a disk drive.

Parameters

const character* root

A pointer to the root directory of the drive whose type is being queried.

Return

unsigned

The type of the drive being queried. This may be one of the values found in the enumeration drive_type.

Notes

If the specified root directory is null, the type of the current drive is returned.