473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

RegEdit


How Can I recover data from REgEDIT since Visual C++ 6.0 ?

Thanks in advanced
Nov 17 '05 #1
7 2813
"German" <Ge****@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
How Can I recover data from REgEDIT since Visual C++ 6.0 ?


I'm not sure I understand. Do you want to read the registry? If so the shell
wrapper function SHGetValue() is probably the easiest way though inefficient
in some cases. For reading multiple values of the same key you might look at
RegOpenKey(), RegQueryValueEx() and RegCloseKey().

If it is not reading that you want to do, then what do you mean by recover?

Regards,
Will
Nov 17 '05 #2
OK !!

For example I want to recover Software information installed into my Pc, is
the best way read this data from the registry ?

Other case if you want to recover harware information from your Pc, reading
from the registry, is the best way ?, and how are the steps that we need to
follow ?
Any other recomendations are welcome !!

Thanks again.

"William DePalo [MVP VC++]" wrote:
"German" <Ge****@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
How Can I recover data from REgEDIT since Visual C++ 6.0 ?


I'm not sure I understand. Do you want to read the registry? If so the shell
wrapper function SHGetValue() is probably the easiest way though inefficient
in some cases. For reading multiple values of the same key you might look at
RegOpenKey(), RegQueryValueEx() and RegCloseKey().

If it is not reading that you want to do, then what do you mean by recover?

Regards,
Will

Nov 17 '05 #3
"German" <Ge****@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com...
For example I want to recover Software information installed into my Pc,
is
the best way read this data from the registry ?


I guess I'm stuck on "recover" which often means "restore to a normal
state".

If you are talking about enumerating all the software and doing it by
scanning the registry, well, then you can get close, but there is nothing
that prevents a simple copy of an application to a folder without an
intervening registry update.

That said, many applications store their installed locations here:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\App Paths\

and a widget to uninstall here:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Uninstall\

Regards,
Will
Nov 17 '05 #4
Yes, I do not want to "restore to a normal state", I want to count it and
identify every software installed into Pc.

How can we read the list containing of
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\App Paths\ or
export this information from Visual C++ ?

Thanks Again,

"William DePalo [MVP VC++]" wrote:
"German" <Ge****@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com...
For example I want to recover Software information installed into my Pc,
is
the best way read this data from the registry ?


I guess I'm stuck on "recover" which often means "restore to a normal
state".

If you are talking about enumerating all the software and doing it by
scanning the registry, well, then you can get close, but there is nothing
that prevents a simple copy of an application to a folder without an
intervening registry update.

That said, many applications store their installed locations here:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\App Paths\

and a widget to uninstall here:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Uninstall\

Regards,
Will

Nov 17 '05 #5
"German" <Ge****@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
How can we read the list containing of
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\App Paths\ or
export this information from Visual C++ ?


You can use the registry functions that I mentioned in my earlier reply to
you. This points to the registry overview in the docs:

http://msdn.microsoft.com/library/de...e/registry.asp

ATL provides a CRegKey class which you might want to look at as well.

Regards,
Will
Nov 17 '05 #6
Sure !!

And it works very good !!
Thanks again William DePalo
Best Regards,

German Medina

"William DePalo [MVP VC++]" wrote:
"German" <Ge****@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
How can we read the list containing of
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\App Paths\ or
export this information from Visual C++ ?


You can use the registry functions that I mentioned in my earlier reply to
you. This points to the registry overview in the docs:

http://msdn.microsoft.com/library/de...e/registry.asp

ATL provides a CRegKey class which you might want to look at as well.

Regards,
Will

Nov 17 '05 #7
Sure !!

And it works very good !!
Thanks again William DePalo
Best Regards,

German Medina

"William DePalo [MVP VC++]" wrote:
"German" <Ge****@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
How can we read the list containing of
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\App Paths\ or
export this information from Visual C++ ?


You can use the registry functions that I mentioned in my earlier reply to
you. This points to the registry overview in the docs:

http://msdn.microsoft.com/library/de...e/registry.asp

ATL provides a CRegKey class which you might want to look at as well.

Regards,
Will

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: the_bass_man | last post by:
I need to be able to delete the value of something in my regedit using vb. Does any1 know how i would go about this. Thanks Ste
1
by: Option^Explicit | last post by:
I have seen some apps that are able to control/open regedit and highlight keys throughout the tree and open at a specified subkey. Something like a "Goto" function thats opens regedit at exactley...
1
by: Samuel Checker | last post by:
We're trying to automate inserting system DSNs using a .reg file. The file works up to a point, but so far I have not found a way to insert the proper password. The authentication method is SQL...
6
by: dixie | last post by:
I want to run regedit and write a key from an event in a form in a more generic manner than the way I have done it here which is: RunReg = Shell("regedit.exe /s I:\APPFolder\SQLfix.reg", 0) ...
1
by: OgaW | last post by:
Hi, How exactly does the regedit registry work in windows? How can we make use of them in our application? How the hacker can exploit the registry setting to plant hidden virus down there?...
49
by: indiauday | last post by:
Hello friends, I am new user to this community. My problem is when I try to open registry editor by start> run > regedit, it displays this message. "Registry...
22
epots9
by: epots9 | last post by:
I forgot how to fix this, so i was wondering: how can i get my computer (WIN XP Media Center SP2) to auto select my user account at the logon screen? I only have one account setup with a password....
3
by: RMDan | last post by:
I want a way to disable regedit, but enabling it with out using group policies? Im trying to make my computer safer and want to set up a set of files to enable/disable cmd(i ave bin doing it with...
0
by: adas1173 | last post by:
Hi, I am not able to open the regedit by typing "regedit" in Run. There is no error message being displayed. It simply doesn't run. Searched about it online. Looks like a virus or spyware can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.