Results 1 to 2 of 2

Thread: Using RegOpenKeyEx

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    69

    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?

  2. #2
    Junior Member
    Join Date
    Sep 2000
    Location
    Yate England
    Posts
    22

    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

    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
  •  



Click Here to Expand Forum to Full Width