I have created a volume shadow copy(eg \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy19) and I want to access the volume shadow copy by a device name(eg x:) in order to backup my system. I have tried the DefineDosDevice:
DefineDosDevice(DDD_RAW_TARGET_PATH, (LPCWSTR)"x:", (LPCWSTR)"\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy19")
It returns success but I can't enter x: in PowerShell(raise DriveNotFoundException): exception in powershell when I input 'x:'
My system is Windows Server 2012 R2 Standard.