How to read and write a MountedDevices entry?
Given
[HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices]
"\\DosDevices\\C:"=hex:af,98,ad,e6,00,7e,00,00,00,00,00,00
[process] RegRead,"HKLM","SYSTEM\MountedDevices","\DosDevices\C:",%MountedDevice_SourceDrive% RegWrite,"HKLM",0x3,"SYSTEM\MountedDevices","\DosDevices\C:_debug",%MountedDevice_SourceDrive%
Strange RegRead read two af: af af 98.RegRead - read specified key from: [HKLM]Section: [SYSTEM\MountedDevices] Key: [\DosDevices\C:] to variable:: [%MountedDevice_SourceDrive%] with value: [#$qAF#$q#$c#$qAF#$q#$c#$q98#$q#$c#$qAD#$q#$c#$qE6#$q#$c#$q00#$q#$c#$q7E#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q]
RegWrite - root key: [HKLM] Type: [0x3] Section [SYSTEM\MountedDevices] Key [\DosDevices\C:_debug="AF","AF","98","AD","E6","00","7E","00","00","00","00","00","00"..]
Registry contains af 98
Result
Registry contains a empty entry C:_debug."\\DosDevices\\C:_debug"=hex:00