Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

RegEdit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
German - 23 Jun 2005 17:17 GMT
How Can I recover data from REgEDIT since Visual C++ 6.0 ?

Thanks in advanced
William DePalo [MVP VC++] - 23 Jun 2005 18:55 GMT
> 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
German - 23 Jun 2005 19:29 GMT
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.

> > How Can I recover data from REgEDIT since Visual C++ 6.0 ?
>
[quoted text clipped - 7 lines]
> Regards,
> Will
William DePalo [MVP VC++] - 23 Jun 2005 23:02 GMT
> 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\CurrentVersion\App Paths\

and a widget to uninstall here:

   HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\

Regards,
Will
German - 24 Jun 2005 14:55 GMT
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\CurrentVersion\App Paths\ or
export this information from Visual C++ ?

Thanks Again,

> > For example I want to recover Software information installed into my Pc,
> > is
[quoted text clipped - 18 lines]
> Regards,
> Will
William DePalo [MVP VC++] - 24 Jun 2005 15:20 GMT
> How can we read the list containing of
> HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\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/default.asp?url=/library/en-us/sysinfo/base/re
gistry.asp


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

Regards,
Will
German - 02 Jul 2005 01:12 GMT
Sure !!

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

German Medina

> > How can we read the list containing of
> > HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\ or
[quoted text clipped - 9 lines]
> Regards,
> Will

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.