BBC BASIC for Windows
« Accessing the registry: 32 and 64 bit? »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:55pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Accessing the registry: 32 and 64 bit?  (Read 1420 times)
g3nrw
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 74
xx Accessing the registry: 32 and 64 bit?
« Thread started on: Dec 15th, 2013, 08:46am »

Richard

There are several references and code snippets in the BB4W documentation that describe how to read/write the Windows Registry.

I am working on a new program that needs to do this. Will the "RegCreateKeyEx" and "RegOpenKeyEx" methods work with both 32 and 64-bit Windows?

--
Ian
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Accessing the registry: 32 and 64 bit?
« Reply #1 on: Dec 15th, 2013, 09:49am »

on Dec 15th, 2013, 08:46am, g3nrw wrote:
Will the "RegCreateKeyEx" and "RegOpenKeyEx" methods work with both 32 and 64-bit Windows?

Yes - how else could 32-bit applications (vast numbers of which access the registry) run in 64-bit Windows otherwise? Obviously your program will only 'see' the 32-bit registry, so if you're trying to find your registry entries using (for example) the 64-bit version of REGEDIT you will need to look in the relevant WoW6432Node section.

Richard.
User IP Logged

g3nrw
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 74
xx Re: Accessing the registry: 32 and 64 bit?
« Reply #2 on: Dec 15th, 2013, 10:43am »

on Dec 15th, 2013, 09:49am, Richard Russell wrote:
if you're trying to find your registry entries using (for example) the 64-bit version of REGEDIT you will need to look in the relevant WoW6432Node section.


WoW6432Node: that's the key word I was looking for. My program needs to access the registry entries of someone else's 64-bit program. More homework needed.

Thanks Richard

--
Ian
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Accessing the registry: 32 and 64 bit?
« Reply #3 on: Dec 15th, 2013, 12:47pm »

on Dec 15th, 2013, 10:43am, g3nrw wrote:
My program needs to access the registry entries of someone else's 64-bit program.

In that case you will need this information:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa384129.aspx

You should not reference 'WoW6432Node' from code.

Richard.
User IP Logged

g3nrw
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 74
xx Re: Accessing the registry: 32 and 64 bit?
« Reply #4 on: Dec 15th, 2013, 2:19pm »

on Dec 15th, 2013, 12:47pm, Richard Russell wrote:
In that case you will need this information:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa384129.aspx



That's more like it. Thanks again Richard.

--
73
Ian
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls