Hi.

If I'm not mistaking, SAVEKEY and LOADKEY both uses "binary" reg-files. I.E. not the kind produced by regedit's export.

Second.
Your WriteValue lacks a comma just before "REG_SZ"
The function also fails if the key HKEY_CURRENT_USER\software\policies\Microsoft\office\9.0\outlook doesn't exist

Hope it helps...

-Patrick