Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

ReadRegistryString and 64-bit system

$
0
0
ReadRegistryString and 64-bit system
FoxPro Programming
ReadRegistryString and 64-bit system
May. 15, 2013
01:28 pm
3SA0SW9OWShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:JohnNY
Johnny,

That's because you're not reading a value, but a key. FEATURE_BROWSER_EMULATION is not a leaf value but a registry node key.

To retrieve a value from that hive looks like this:

#INCLUDE wconnect.hDO wwapiLOCAL loAPI as wwAPI loApi = CREATEOBJECT("wwAPI") ? loAPI.ReadRegistryString(HKEY_LOCAL_MACHINE, ;"SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION", ;"Skype.exe",; .T.) && retrieve value as integer

+++ Rick ---


I'm trying to use wwAPI to read registry strings, I used ot use this routine on 32-based systems but it does not work on 64-bit Windows 7. I assume the problem is the fact my OS is 64 bit.

Whihcever key I try to read I get a NULL.
What's the problem? any help will be greatly appreciated.

==================

loAPI = CREATEOBJECT("wwAPI") ? loAPI.ReadRegistryString(HKEY_LOCAL_MACHINE, "SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\", "FEATURE_BROWSER_EMULATION")

==================



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles