I am getting an Error 19 using LoadKey on Kix 4.12 under Windows XP SP-1

Here's my code:

code:
 
IF (@inwin = 1)
$profilelocation = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
ELSE
$profilelocation = "HKEY_CURRENT_USER\Software\Microsoft\Windows Messaging Subsystem\Profiles"
ENDIF

$tmpfile=%TEMP%+'\OLProf.dat'

$save=$profilelocation+"\"+@UserID
$Load=$profilelocation+"\"+@UserID+"X"
SaveKey("$Save", "$tmpfile")
AddKey("$Load")
sleep 3
LoadKey("$Load", "$tmpfile") ; This line fails!
? @Error
? @Serror

The Return:
code:
 19
The media is write protected.

Any ideas?

(I can't use WriteValue()...I need to backup a section of the registry.)

Ed
_________________________
{Insert your favorite Witty Tag Line here}