|
-
Sep 27th, 2001, 10:20 AM
#1
Thread Starter
Lively Member
Using RegOpenKeyEx
I have a question about finding if a specified app is installed on a machine or not.
I use:
RegOpenKeyEx(HKEY_CURRENT_USER, SUBKEYTOPATH, &H0, KEY_READ, dwKey) and on most machines get a return code of , which is fine, but on some machines I get a return code = 2 even if the specified app is installed on the machine. Any ideas on what a return code of 2 means? Any ideas on how do do it better?
-
Sep 27th, 2001, 10:31 AM
#2
Junior Member
Opening keys
Hi Innofin,
I've had a similar problem before and it was due to user privilages and the type of OS the machine was running.
Try using KEY_QUERY_VALUE instead of KEY_READ.
Hope this helps.
Let me know if it worked. Gibbo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|