CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Posts
    10

    Setting Registry Values in NT/Win2K

    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!!


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Setting Registry Values in NT/Win2K

    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
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured