Re: Windows Registry



Thank youy very much for all the links you gave to me
--
Friedi


"Ramesh, MS-MVP" wrote:

Example:
http://groups.google.com/group/comp.databases.ms-access/msg/3ab1868f2a456d35

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Ramesh, MS-MVP" <ramesh@xxxxxxxxxxxx> wrote in message
news:OGuUPM%23JGHA.500@xxxxxxxxxxxxxxxxxxxxxxx
The "SUMMARY" section in the following article explains you everything.

How To Use the Registry API to Save and Retrieve Setting:
http://support.microsoft.com/kb/q145679/

- - - -
Although Visual Basic includes the SaveSetting and GetSetting functions to
save and retrieve information from the registry, these functions only
operate on a specific section of the registry, the Visual Basic and VBA
Program Settings of the HKEY_CURRENT_USER root key.

This article outlines the use of 32-bit Windows API functions, which can be
used to set and retrieve values from anywhere in the registry. The topics
and function references in this article can be generalized to program the
16-bit registry.
- - - -

Whereas the Adobe Acrobat installation path can be found in the following
registry location, which is outside the limits of "GetSetting" function.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\AcroRd32.exe]
The (default) contains the application path.

See also:

Visual Basic for Applications (VBA) - MSDN Forums:
http://forums.microsoft.com/msdn/showforum.aspx?forumid=74&siteid=1

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Friedi" <Friedi@xxxxxxxxxx> wrote in message
news:945F6D91-3277-4C2C-B79D-4BF27421500A@xxxxxxxxxxxxxxxx
Thank you very much for your reply. I am not familiar with API and think
with the articles you pointed out I have a lot of study to do.

Just please precise what you mean me to do :

Quote ' Get the Path from here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\AcroRd32.exe '
End Quote

Is this to program with VBA 'getsetting' or with an API function?

Thanks
Friedi
--
Friedi


"Ramesh, MS-MVP" wrote:

Get the Path from here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\AcroRd32.exe

Why Use VBA to Call the Windows API?:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/html/deovrwhyusevbatocallwindowsapi.asp

[Excerpt]
For example, VBA provides functions that read from and write to a portion
of
the registry reserved for VBA applications. You can use these functions -
GetSetting, GetAllSettings, SaveSetting, and DeleteSetting - to maintain
information about your application between sessions. However, these
functions permit you to work with only one subkey in the registry, namely
the \HKEY_CURRENT_USER\Software\VB and VBA Program Settings subkey. If you
want to store or to retrieve information from any other part of the
registry, you must use the Windows API.

[/Excerpt]


How To Use the Registry API to Save and Retrieve Setting:
http://support.microsoft.com/kb/q145679/

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Friedi" <Friedi@xxxxxxxxxx> wrote in message
news:CFCC9166-E9D7-4F63-8AD3-34C50A9345F7@xxxxxxxxxxxxxxxx
Using the 'GetSetting' Function in VBA (We work with Access 2002/2003) we
only get info from the Windows Registry within the section 'VB and VBA
Program Settings'.
We would like to get info of a setting - by means of VBA Code- of the
actual
path of an Acrobat Reader installed on a computer. On my machine for
example,the actual path is:
c:\Program Files\Adobe\Acrobat 7.0\Reader. On my 2nd machine, Acrobat is
installed on D: and is version 6.
How do we have to program with VBA to get this information out of the
Windows Registry?

Can anybody help?
Thanks
Friedi
--
Friedi







.



Relevant Pages

  • Re: Windows Registry
    ... Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User] ... How To Use the Registry API to Save and Retrieve Setting: ... Visual Basic for Applications (VBA) - MSDN Forums: ...
    (microsoft.public.windowsxp.general)
  • Re: [Full-Disclosure] PLEASE QUIT YACKING ABOUT M$
    ... on in order to get the 5% exploits within a single post, or all posts. ... >> simply another API. ... >> registry editor, in fact, the classes I put together treat them both very ... > from the filesysem, in Windows, you need to learn the filesystem API ...
    (Full-Disclosure)
  • Re: Calling Still Image API in C#
    ... to work on the interface definitions and the interaction with the StillImage ... > It appears that you are calling the API correctly. ... > fixed for the next release of the Windows OS. ... > recommending that you remove the registry key for your registered ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Windows Registry
    ... Is this to program with VBA 'getsetting' or with an API function? ... > the registry reserved for VBA applications. ... you must use the Windows API. ...
    (microsoft.public.windowsxp.general)
  • Re: Windows Registry
    ... How To Use the Registry API to Save and Retrieve Setting: ... Visual Basic for Applications (VBA) - MSDN Forums: ...
    (microsoft.public.windowsxp.general)