Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,912 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,183 people online right now. Registration is fast and FREE... Join Now!




registry

 
Reply to this topicStart new topic

registry, trying to start

royjm248
18 Jan, 2008 - 08:35 PM
Post #1

New D.I.C Head
*

Joined: 18 Jan, 2008
Posts: 18



Thanked: 1 times
My Contributions
I am a student working on my degree in software engineering and I am getting a little frustrated. I am looking for good examples of how to look at the registry via a simple c++ program. I am looking for the basics, and I believe I can build from there, but I seem to get is other peoples broken code. Even some that I am pretty sure is malicious. Can someone help me find a clue? I don't need you to do the work, just point in a good direction. Thank you for any assistance!
Roy
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Registry
18 Jan, 2008 - 11:44 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,655



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
One great site to check out is the page on MSDN for RegQueryValueEx... a Win32 API function used for registry keys. The page also has an example....

RegQueryValueEx API Function - MSDN

And more important page is the one on MSDN for all the registry functions for reading/writing as well as structures.

Registry Reference Page on MSDN (Functions, structures, and more)

Enjoy!

smile.gif

This post has been edited by Martyr2: 18 Jan, 2008 - 11:45 PM
User is offlineProfile CardPM
+Quote Post

royjm248
RE: Registry
19 Jan, 2008 - 12:08 AM
Post #3

New D.I.C Head
*

Joined: 18 Jan, 2008
Posts: 18



Thanked: 1 times
My Contributions
QUOTE(Martyr2 @ 19 Jan, 2008 - 12:44 AM) *

One great site to check out is the page on MSDN for RegQueryValueEx... a Win32 API function used for registry keys. The page also has an example....

RegQueryValueEx API Function - MSDN

And more important page is the one on MSDN for all the registry functions for reading/writing as well as structures.

Registry Reference Page on MSDN (Functions, structures, and more)

Enjoy!

smile.gif


QUOTE

Thank you, I will see what these sites have to offer!


User is offlineProfile CardPM
+Quote Post

skaoth
RE: Registry
21 Jan, 2008 - 01:27 PM
Post #4

D.I.C Regular
Group Icon

Joined: 7 Nov, 2007
Posts: 356



Thanked: 12 times
Dream Kudos: 100
My Contributions
Another option if you can use Active Template Library (ATL)
They already provide a Class that wraps up the win32 registry functions.
The class is called

CRegKey.

The header file is atlbase.h

Hope that helps
User is offlineProfile CardPM
+Quote Post

nirvanarupali
RE: Registry
21 Jan, 2008 - 04:21 PM
Post #5

D.I.C Stomach
Group Icon

Joined: 1 Aug, 2007
Posts: 995



Thanked: 4 times
Dream Kudos: 375
My Contributions
Some example in the Snippet is here:

http://www.dreamincode.net/code/snippet1314.htm
User is offlineProfile CardPM
+Quote Post

royjm248
RE: Registry
3 Feb, 2008 - 12:25 AM
Post #6

New D.I.C Head
*

Joined: 18 Jan, 2008
Posts: 18



Thanked: 1 times
My Contributions
QUOTE(skaoth @ 21 Jan, 2008 - 02:27 PM) *

Another option if you can use Active Template Library (ATL)
They already provide a Class that wraps up the win32 registry functions.
The class is called

CRegKey.

The header file is atlbase.h

Hope that helps

"Thanks for the pointer"

QUOTE(nirvanarupali @ 21 Jan, 2008 - 05:21 PM) *

Some example in the Snippet is here:

http://www.dreamincode.net/code/snippet1314.htm

Thank you, very nice work!
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/8/09 02:02PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month