Click to See Complete Forum and Search --> : Setting Registry Values in NT/Win2K


bigfredb
October 16th, 2001, 03:59 PM
I have a module which has functions which read and write to the HKEY_Local_Machine portion of the registry.

The functions work fine in Win9x but do not work in NT or Win2K when the client is logged in.

Does anyone have an example of the code that does this? Is this a permissions problem?

Please Help!!

Cakkie
October 17th, 2001, 01:56 AM
I think this is indeed a permission problem. If the client doesn't have administrator right, he will not be able to write to the registry (or at least not to all parts). HKEY_LOCAL_MACHINE is one of those 'off-limits' places, there are some places in HKEY_CURRENT_USER where he can write to, but I don't know which one, and even that depens, cause by default, a user does not have write access to the WinNT and WinNT\System32 folders. This also will cause a problem when trying to write to the registry.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook