Edit a file in the registry????

This is a discussion on Edit a file in the registry???? within the C Programming forums, part of the General Programming Boards category; Hello, I would like to know if any of you can tell me how I can edit a file in ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    13

    Question Edit a file in the registry????

    Hello, I would like to know if any of you can tell me how I can edit a file in the registry using C? I can go on my PC and run regedit and rename the file my self. But I am looking to make this step automated! I want to run my program and rename a file I have in the registry. The path I'm trying to reach is:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\Ratings

    I'm looking to rename this file to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\Ratings1

    Thanks for any help...
    Thanks,
    Cyberpuck52

    "If you know the enemy and know yourself, you need not fear the result of a hundred battles"
    -Sun Tzu, Art of War

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    hmm, im sure that file is something to do with internet viewing restructions. i dont thinkm you will find a way in pure C++, but the windows.h has extensive facilities for registry control. Search www.msdn.microsoft.com
    Monday - what a way to spend a seventh of your life

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    13

    Thumbs up

    You're right it does. What happed is, I get a call all the time telling me they can't view a secured site because the parental setting are enabled. I walk them through IE to change them and they either don't know the password (because the bought the computer used) or they forgot the password. I'm trying to write a program that will rename this password file for them so they can access the secured sites and/or set a new password for viewing. I have the first part done, renaming a file on the C drive, thanks to a reply from Edge. Now I'm looking to access the registry to rename the second file. If I can't do this then I will have to keep walking the users through this process and that would leave room for error.

    I will check out the windows.h file and that link.

    Thanks,
    Cyberpuck52

    "If you know the enemy and know yourself, you need not fear the result of a hundred battles"
    -Sun Tzu, Art of War

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. edit txt file help
    By pczafer in forum C++ Programming
    Replies: 4
    Last Post: 04-20-2009, 07:49 AM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  3. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  4. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21