Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Is It Possible To Edit Windows Registry?


11 replies to this topic

#1 amrit

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 39 posts

Posted 02 October 2008 - 10:53 AM

i have just started learning c++. i am currently using turbo c++.is it possible to edit windows registry in c++(not vc++). i am just a beginner . would be glad if you gave examples.

#2 Athleone

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 28 posts
  • Gender:Male

Posted 02 October 2008 - 10:59 AM

It is possible to change the registry using C++. I have searched the Internet, and have found two articles that will probably be of use for you.

http://op.htmsoft.co...iclea2-4-2.html

http://op.htmsoft.co...iclea2-5-3.html

#3 amrit

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 39 posts

Posted 02 October 2008 - 11:10 AM

thanks but i still dont understand, can some one please explain as i am new. can ou specifically write the program??

#4 Lyon2

    The Ethical Hacker

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,335 posts
  • Gender:Male
  • Location:Portugal (Europe)
  • Interests:Flash Clocks Website<br />http://flash-clocks.com<br /><br />My Work and Family.
  • myCENT:59.69

Posted 02 October 2008 - 02:06 PM

amrit, i do not know in c/c++, but i do know in other ways.


You can edit the windows 2000/xp registry manually or with a specific program created for that same purpose, for instance, windows xp comes with an already installed windows registry editor, it is not much of an editor, it is free, yes, but today, there are a lot of other programs, freeware, programs/tools, to tweak and edit the windows 2000/xp registry.



To use the windows xp installed tool:

Click the start button, then click execute, then digit this word: regedit , then click enter or ok, now that is the registry editor by default.



To search the internet for the top quality and freeware registry edtors, search in this websites:

http://www.snapfiles...fwregtools.html
http://www.freeware-guide.com
http://www.download.com
http://www.tucows.com
http://www.google.com
http://www.yahoo.com


To tweak your registry/system, this are the best freeware tools, choose one:

http://www.snapfiles...fwsystweak.html


Actually, i advice you to not edit the registry just by yourself if you do not have any expertise or any experience, if you edit the windows 2000/xp registry in some specific keys, your could paralise the windows system completely or just parcialy, or you just could make the system work slowly or just plain bad, do you understand? The windows 2000/xp registry is praticaly the heart or core of the system it self, without it, it would not be a system, with would be nothing, with would be an incomplete system at the very least, so be very careful editing it.

Be sure to always create backups of your windows registry (2000 or XP) because without the backup you can not roll backup your changes that you made to the registry, do not make the same mistakes that many persons made, he he he.

Edited by Lyon2, 02 October 2008 - 02:11 PM.


#5 amrit

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 39 posts

Posted 02 October 2008 - 02:20 PM

hey i already know all that stuff man..... i wanted to know if it is possible through some c++ commands.

#6 Lyon2

    The Ethical Hacker

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,335 posts
  • Gender:Male
  • Location:Portugal (Europe)
  • Interests:Flash Clocks Website<br />http://flash-clocks.com<br /><br />My Work and Family.
  • myCENT:59.69

Posted 02 October 2008 - 02:23 PM

Ok amrit, sorry, i just wanted to help, i will see if i can help you with that too.

I will ask some freinds of mine that work with c++, perhaps today if they answer me by e-mail.

#7 innosia

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 238 posts
  • Interests:Programming in PHP and .NET (include website development). Has much skill experience in most uses programming languages.

Posted 02 October 2008 - 06:10 PM

View PostLyon2, on Oct 2 2008, 02:23 PM, said:

Ok amrit, sorry, i just wanted to help, i will see if i can help you with that too.

I will ask some freinds of mine that work with c++, perhaps today if they answer me by e-mail.

That is possible the method is as follow
1. Compile your c++ using a c++ that supports adding library to include the Microsoft API Header or .H file, these files are usually reside in Windows directory, it is to enable that your .exe application to use .dll provided by microsoft in code. But be aware that your result .exe may only work in your Windows version, in some other version or even service pack, the .dll and header might have changed as microsoft upgraded their product, as a problems often an issue.
2. There is infact no different in vc++ and c++ excepts that vc++ addeed some new keyword (microsoft vc++ has keyword act as macro)
3. Using API is the best way to access the registry in C++ use this function
LONG RegSetValueEx(HKEY hkey, LPCSTR lpszName, DWORD NotUsed, DWORD DataType, CONST LPBYTE lpValue, DWORD SizeOfValue);
4. Uses advapi32.dll

Vote me informative if you like
read this http://www.gidforums.com/t-3186.html

Edited by innosia, 02 October 2008 - 06:11 PM.


#8 amrit

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 39 posts

Posted 02 October 2008 - 08:24 PM

no noh not at all lyon2 no probs. tks innosia , but i stilll might need help figuring out what you said. waiting for the magician to post to explain me...

#9 innosia

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 238 posts
  • Interests:Programming in PHP and .NET (include website development). Has much skill experience in most uses programming languages.

Posted 02 October 2008 - 08:42 PM

View Postamrit, on Oct 2 2008, 08:24 PM, said:

no noh not at all lyon2 no probs. tks innosia , but i stilll might need help figuring out what you said. waiting for the magician to post to explain me...

learn c++ deeper
if you want creating C++ .exe that can manipulates windows get a book about Windows Programming, mostly it describes only win32 API that is used for manipulating windows, you can do anything with Windows Programming, but harder to create a complex windows application things (like form with object, anchor and dock, and complex controls)

But win32 API is good when you are creating small tools, the executable result is small (if you don't include mfc and large library). What in fact are you going to create amrit?

#10 nickthat

    Newbie

  • Kontributors
  • Pip
  • 2 posts

Posted 04 October 2008 - 05:54 PM

Making direct calls to the Windows API functions shouldn't be neccessary. It would be easier, especially if you are new to C++ to use some classes that encapsulate the Windows API. These generally are less verbose as they require less parameters and will get you up and running quicker.

A quick google search for such classes yields the following. I can't vouch for it but codeproject.com generally has good free code on it.

http://www.codeproje...s_Registry.aspx




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users