Hello,
I'm trying to use some code I found to write a value to the registry. The 'TestRegistry' sub gives me an error when it tries to write the registry key by calling the 'RegKeySave' function.
The error is:
Run-time error '-2147024893 (800700003)
Invalid root in registry key
"Computer\Computer\HKEY_LOCAL_MACHINE\SOFTWARE\LDPTest"
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\LDPTest
Can you help me fix the error?
Thanks in advance
I'm trying to use some code I found to write a value to the registry. The 'TestRegistry' sub gives me an error when it tries to write the registry key by calling the 'RegKeySave' function.
The error is:
Run-time error '-2147024893 (800700003)
Invalid root in registry key
"Computer\Computer\HKEY_LOCAL_MACHINE\SOFTWARE\LDPTest"
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\LDPTest
Can you help me fix the error?
Thanks in advance