#ifndef _NTIOAPI_H
/**
* The MOUNTMGR_TARGET_NAME structure is used by mount manager clients to send a target name to the mount manager.
* \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/mountmgr/ns-mountmgr-_mountmgr_target_name
*/
typedef struct _MOUNTMGR_TARGET_NAME
{
USHORT DeviceNameLength;
_Field_size_bytes_(DeviceNameLength) WCHAR DeviceName[1];
} MOUNTMGR_TARGET_NAME, *PMOUNTMGR_TARGET_NAME;
View code on GitHub// mountmgr.h
typedef struct _MOUNTMGR_TARGET_NAME {
USHORT DeviceNameLength;
WCHAR DeviceName[1];
} MOUNTMGR_TARGET_NAME, *PMOUNTMGR_TARGET_NAME;
View the official Windows Driver Kit DDI referenceThis structure is documented in Windows Driver Kit.
The MOUNTMGR_TARGET_NAME structure contains the nonpersistent target device name for a device and is used by mount manager clients with the IOCTL_MOUNTMGR_KEEP_LINKS_WHEN_OFFLINE request to tell the mount manager to keep the symbolic link for a device active even after the device has gone offline.
DeviceNameLengthContains the length, in bytes, of the device name stored in DeviceName.
DeviceNameContains the nonpersistent target device name.
Nonpersistent target names must contain the full path of a target object name in the system object tree. For example: "\Device\HarddiskVolume1".
For more information, see Supporting Mount Manager Requests in a Storage Class Driver.
IOCTL_MOUNTMGR_KEEP_LINKS_WHEN_OFFLINE