Reading/Writing to HKEY_LOCAL_MACHINE file of NTRegistry
Does anyone know how entries can be read and written to the HKEY_LOCAL_MACHINE section of the NT Registry?
>From what I can tell, the GetEnv() and SetEnv() methods can only access HKEY_CURRENT_USER.
Any info would be appreciated,
John Bruning
IBIS Consulting Inc.
[304 byte] By [
] at [2007-11-25 5:01:41]

Use rregchg from the NT Resource Kit.
At 03:04 PM 1/12/98 -0800, you wrote:
>Does anyone know how entries can be read and written to the
HKEY_LOCAL_MACHINE section of the NT Registry?
>
>>From what I can tell, the GetEnv() and SetEnv() methods can only access
HKEY_CURRENT_USER.
>
>Any info would be appreciated,
>
>John Bruning
>IBIS Consulting Inc.
>
>
========================================
David Vydra
Education Consultant
Forte Software, Inc.
dvydra@forte.com; phone: (510)986.3593
at 2007-6-29 9:21:31 >

John,
You could try writing to a registry file (myreg.reg) and executing this
file after it's written from within the Forte code. I believe you do this
using the ExecuteCmd() method. To see the format you need to use for the
registry file, highlight the key you wish to change and choose File|Export
Registry File from Regedit. Once you have the format, have your code write
the same thing plus your changes to a text file and execute the following
command line: regedit.exe /s c:\temp\myreg.txt
Regards,
John Orthwein
Does anyone know how entries can be read and written to the
HKEY_LOCAL_MACHINE section of the NT Registry?
>From what I can tell, the GetEnv() and SetEnv() methods can only access
HKEY_CURRENT_USER.
Any info would be appreciated,
John Bruning
IBIS Consulting Inc.
at 2007-6-29 9:21:31 >
