LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2007, 12:07 PM   #1
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
Manipulating WinXP-32bit Registry


Having not worked with Windows in a few years, I have no idea where to find documentation for this kind of thing. I'd like to be able to make some simple actions on the Win Registry (basically: read things from it). Preferably I'd like some documentation on how to accomplish this using x86 assembly, however, C/C++ oriented docs would be just as good. I do not wish to use 3rd party libraries. (book recommendations are welcomed as well)
 
Old 05-04-2007, 12:59 PM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
MSDN is the place for this sort of info:
http://msdn2.microsoft.com/en-us/library/ms724925.aspx
 
Old 05-04-2007, 01:01 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
RegOpenKey/RegQueryValue?

Hi -

The Win32 API for reading the Registry is basically just:
RegOpenKey (or RegOpenKeyEx)
RegQueryValue
RegCloseKey

You can easily Google for code snippets, and write a 10-line C/C++ program to read the registry in no time flat. If you were interested in the assembly output, you could just as easily compile with "cl /Fa" and look at the .asm output.

But if you were interested in delving a bit deeper - into how the Win32 API actually *works*, here's a good article:

http://www.ddj.com/184410109

'Hope that helps .. PSM

Last edited by paulsm4; 05-04-2007 at 01:03 PM.
 
Old 05-05-2007, 12:10 AM   #4
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Original Poster
Rep: Reputation: 30
Thanks! I'll have a look into it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
manipulating partitions krelp Linux - Hardware 3 12-22-2006 12:47 PM
Manipulating Using DATES in MYSQL grabro Linux - Software 3 01-08-2006 06:25 AM
manipulating files tableyou Linux - Newbie 8 11-08-2005 02:38 AM
Manipulating NICs ? Infernal211283 Linux - Newbie 5 04-28-2005 11:46 AM
Manipulating Files in vi Baldorg Linux - General 1 09-19-2003 07:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration