Re: msaccess.exe API calls: where to get the function call description



David,

I am working with existing code. The person who created this code does not
work for the company anymore. She used this function to write several entries
into the custom registry key to save application settings on exit. It works
really fine on my desktop with Office 2000. This function is a standard API
call , I posted just the declaration part of it. She calls it from a module
as follows:

rc = adh_accRegWriteVal(adhcHKEY_LOCAL_MACHINE, REGPATH &
"AppKeyName", "Top", .y1, adhcREG_DWORD)

where
adhcHKEY_LOCAL_MACHINE is a pre-defined constant &H80000002 which stays for
HKEY_LOCAL_MACHINE
REGPATH is a pre-defined constant with a path in the registry
AppKeyName is a key name for the registry key
Top is a Value Name
..y1 is a Value Data (this is just a numeric value from a record.

The part that does not work is adhcHKEY_LOCAL_MACHINE. As I say, its value
&H80000002 which is hexadecimal and it works for Access 2000. It does not
work with Access 2003. if I replace this value with the decimal
representation of the same number - 2147483650 then Access adds a pound sign
# at the end of the number an it works in Access 2000.
I was trying to get a feel for the proper syntax for this function and for
how I should enter values.
But if you say I shoul use soemthing else, please, let me know what should I
use from Access module to write to the registry.

Thanks,
Yelena



David W. Fenton wrote:
Basically I will be grateful for the input format of all
parameters. The function definition is:
[quoted text clipped - 5 lines]
String, _
lpData As Any, ByVal lngType As Long) As Long

What are you trying to do here? I can't think of a situation where
I'd ever attempt what you're doing here. If you want to automate
Access, then this is definitely *not* the way to go about it!


--
Regards,
Yelena Varshal

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/200604/1
.



Relevant Pages

  • Re: msaccess.exe API calls: where to get the function call description
    ... I would suggest you study the reason for these registry writes. ... into the custom registry key to save application settings on exit. ... use from Access module to write to the registry. ... The function definition is: ...
    (comp.databases.ms-access)
  • Re: quick launch tool bar
    ... and save the registry key to ... key and delete all entries in the right pane except the value. ... | I have lost the "Quick Lauch" toolbar, and when I attempt | to reestablish it, I recieve a command "cannot create ...
    (microsoft.public.win2000.applications)
  • Re: quick launch
    ... Run "regedit" from Start|Run. ... and save the registry key to ... key and delete all entries in the right pane except the value. ...
    (microsoft.public.win2000.general)
  • Re: Print Spooler Will Not Keep Running
    ... Check the registry key not a directory. ... some entries under that registry key. ... upgrade of XP my Print Spooler will not stay running. ... Printers and Drivers and the Print Spooler will still not stay running. ...
    (microsoft.public.windowsxp.print_fax)
  • Most recently used file list
    ... remove the ntire list by removing a registry key. ... to be able to limit this list to say 3 or 4 entries. ... Kevin Rudd ...
    (microsoft.public.exchange.misc)