Hi,
I've found this Registry Module source to access the Windows registry.
It works well, but I have a little problem when accessing some keys.
If I try to access the key PATH (its type is REG_EXPAND_SZ - dont' ask me why is not a simple string...) I got a void string. And this is not a good thing.
Can someone explain me how to change the code to read the path (or the Reg_Expand_sz variables)?
My idea is read (with this key) the system path, modify it and then save-write it again to the registry.
Unless there's another way to change permanentely the path...I mean not manually - via software.
This is the last (and of course the most important - Murphy's law...) part of my program.
Thanks.
I've found this Registry Module source to access the Windows registry.
It works well, but I have a little problem when accessing some keys.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
If I try to access the key PATH (its type is REG_EXPAND_SZ - dont' ask me why is not a simple string...) I got a void string. And this is not a good thing.
Can someone explain me how to change the code to read the path (or the Reg_Expand_sz variables)?
My idea is read (with this key) the system path, modify it and then save-write it again to the registry.
Unless there's another way to change permanentely the path...I mean not manually - via software.
This is the last (and of course the most important - Murphy's law...) part of my program.
Thanks.