#ifndef _NTIOAPI_H
// Output structure for IOCTL_MOUNTMGR_NEXT_DRIVE_LETTER.
typedef struct _MOUNTMGR_DRIVE_LETTER_INFORMATION
{
BOOLEAN DriveLetterWasAssigned;
UCHAR CurrentDriveLetter;
} MOUNTMGR_DRIVE_LETTER_INFORMATION, *PMOUNTMGR_DRIVE_LETTER_INFORMATION;
View code on GitHub// mountmgr.h
typedef struct _MOUNTMGR_DRIVE_LETTER_INFORMATION {
BOOLEAN DriveLetterWasAssigned;
UCHAR CurrentDriveLetter;
} MOUNTMGR_DRIVE_LETTER_INFORMATION, *PMOUNTMGR_DRIVE_LETTER_INFORMATION;
View the official Windows Driver Kit DDI referenceThis structure is documented in Windows Driver Kit.
The MOUNTMGR_DRIVE_LETTER_INFORMATION structure is used by the mount manager to furnish a drive letter to a client that has requested a driver letter by means of an IOCTL_MOUNTMGR_NEXT_DRIVE_LETTER request.
DriveLetterWasAssignedIndicates when TRUE that member CurrentDriveLetter contains a drive letter. When FALSE, a driver letter was not assigned to the device.
CurrentDriveLetterContains either an existing or a newly assigned drive letter in the form of a single ASCII character (for example, "D") if DriveLetterWasAssigned is TRUE.
For more information, see Supporting Mount Manager Requests in a Storage Class Driver.
IOCTL_MOUNTMGR_NEXT_DRIVE_LETTER