• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

Edit the Registry Editor with C

Is there any way to modify the Registry Editor with C?  If so, how?  
0
People_Code
Asked:
People_Code
1 Solution
 
Kent OlsenData Warehouse Architect / DBACommented:

If you mean can you modify the released version of RegEdit, you probably can't do anything meaningful.

If you mean can you replace regedit with your version, yes.

If you mean can you insert new entries in the registry and modify the data values of existing entries, yes.  There are a number of free libraries that you can use.  Most C++ libraries have the functionality built into them.  Libraries intended for C are harder to find.


Kent
0
 
People_CodeAuthor Commented:
Well, I just want to edit the data in a Key.  I would also like to know how to add, and delete regedit keys.

Thanks

Tyler
0
 
Kent OlsenData Warehouse Architect / DBACommented:

Hi People_Code,

Is your C compiler 'just' a C compiler or does it also support C++?

Kent
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
People_CodeAuthor Commented:
Yes, it does support C++.
0
 
Kent OlsenData Warehouse Architect / DBACommented:

If your using MFC, Visual C++, Borland C++, Borland C++ Builder, or any of several others, there are built-in classes for editing the registry.

If you want to build your own, you can get a good start with source code at:

http://www.codearchive.com/list.php?go=0218


Good Luck,
Kent
0
 
migoEXCommented:
You can also use Win API:
   RegCreateKeyEx
   RegQueryValueEx
   etc.
   (see the list in the MSDN)

Those functions don't require C++, you can use them from any pure C program.
0
 
Kent OlsenData Warehouse Architect / DBACommented:

Hi migo,

I didn't know that MS provided registry maintenance APIs in their base C libraries.  Cool.

Kent
0
 
timbauerCommented:
migoEX is right,
The Win API is a pure C interface.

This is the set of Registry functions they offer.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry_functions.asp

This is a broader list of all the other operating system calls.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/functions_by_category.asp
0
 
People_CodeAuthor Commented:
Sorry, but I found that none of the answers posted worked.

Tyler
0
 
People_CodeAuthor Commented:
Look man, chill out.  I didn't know that we had to "clean up" our questions ourselves.  And I tried to use the API code, and the program wouldn't compile when I put the code in.  Yes, I did sit here in silence letting the question fester, but I assumed that I could wait till I found an answer that worked.  Guess not.  Sorry I'm not an "expert" like you.

Tyler
0
 
GhostModCommented:
PAQed - no points refunded (of 50)

GhostMod
Community Support Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now