Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegLoadKey
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00147215
Message ID:
00147390
Views:
31
David,
I'm using Win95, the reg file was created by Regedit, what i'm trying to do is keep a public copy of the reg hive used by my app on the server, any new users/changes etc... could reference this file and import it using RegLoadKey(), my knowledge of the API is sadly lacking though and try as I might I cannot find a API/VFP book

Regards
Pete Kane

>Pete,
>
>Never used that API. If NT do you have the correct privledges? Was the c:\pk.reg file created from RegSaveKey?
>
>>Has anyone used the API call RegLoadKey in VFP, I tried it as set out below and got a 1010 error returned, any ideas??
>>Regards
>>Pete Kane
>>
>>#DEFINE hkey_local_machine 2147483650 && (HKEY) 0x80000002
>>
>>declare LONG ;
>>RegLoadKey in advapi32 ;
>>integer,string,string
>>
>>?RegLoadKey(hkey_local_machine,'Software','c:\pk.reg')
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform