Re: msaccess.exe API calls: where to get the function call description
- From: "Yelena Varshal via AccessMonster.com" <u15452@uwe>
- Date: Tue, 11 Apr 2006 20:38:28 GMT
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[quoted text clipped - 5 lines]
parameters. The function definition is:
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
.
- Follow-Ups:
- Re: msaccess.exe API calls: where to get the function call description
- From: Tom van Stiphout
- Re: msaccess.exe API calls: where to get the function call description
- From: David W. Fenton
- Re: msaccess.exe API calls: where to get the function call description
- References:
- msaccess.exe API calls: where to get the function call description
- From: Yelena Varshal via AccessMonster.com
- Re: msaccess.exe API calls: where to get the function call description
- From: David W. Fenton
- msaccess.exe API calls: where to get the function call description
- Prev by Date: Re: msaccess.exe API calls: where to get the function call description
- Next by Date: Re: msaccess.exe API calls: where to get the function call description
- Previous by thread: Re: msaccess.exe API calls: where to get the function call description
- Next by thread: Re: msaccess.exe API calls: where to get the function call description
- Index(es):
Relevant Pages
|