The problem is that

WriteValue is not working for WINXP.

Writevalue works fine for WIN98, Is there a permision problem? The user I am testing with has full ADMIN rights to the PC.

Any suggestions would be gratefully appreciated.

Thanks