I found several posts writing to this registry, but none (I found) mentioned anything special that had to be done first.
I've been manipulating the HKEY_CURRENT_USER w/ no problems.
But there is a parameter I have to change in the HKEY_LOCAL_MACHINE.
At first I thought I had a registry redirect problem (ie the WOW6432NODE issue), but this is not the case. I can't write to HKEY_LOCAL_MACHINE under a 64 bit (as WOW6432NODE redirect or REG_64 direct) or 32 bit OS.
I also don't "think" I have a security issue as I can modify the parameter manually using regedit. Also, I'm the admin on one of the two OSs I'm working with. Neither give me a problem w/ regedit.
Note: I don't have any problems READING from HKEY_LOCAL_MACHINE.
Here's the code:
Code: Select all
//This Works
RegistryWriteKey>HKEY_CURRENT_USER,SOFTWARE\X,MLPFile,15000
RegistryReadKey>HKEY_CURRENT_USER,SOFTWARE\X,MLPFile,MLValue
mdl>MLValue
//Displays 15000
//This does not?
RegistryWriteKey>HKEY_LOCAL_MACHINE,SOFTWARE\X,MLPFile,15000
RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\X,MLPFile,MLValue
mdl>MLValue
//Displays blank as write did not work