You may THINK permissions aren't a problem, but - the return code "5" is "Access Denied". Odd that WriteValue works, but something is preventing the LoadKey from gaining proper access.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D