Instead of modifying the registry directy, there are certain win32 API funtions that will allow you to edit certain keys and apply them instantly. I'm not sure but I beleive the function in "setreg()"? or "setkey()"?

scat