Results 1 to 4 of 4

Thread: I can't read this one registry key...but all others...*Resolved*

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    102

    Question I can't read this one registry key...but all others...*Resolved*

    I have some code for a little program that uses AOL Instant Messenger as a host and so I want to run it on startup. My program uses the registry in various places all over, and can read/write/etc to every directory except I can't seem to read the installed AIM directory, found here:

    HKEY_CURRENT_USER\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\AppPath

    It is listed under the key "(Default)"

    Any ideas on how to read this key?

    Please test code before posting it here, as I've tried 2 examples from other people's posts and can't seem to get to work. Hell, maybe I'm just stupid though

    Thanks for your help!
    Last edited by boscord; Oct 30th, 2003 at 04:33 PM.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    To read the default value of a key, just pass "" in the lpValueName parameter of the RegQueryValueEx API function.

    Also make sure you have permissions to access the key in question.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    102
    Thank you! That's exactly what I needed!

  4. #4
    Hyperactive Member Steve Stunning's Avatar
    Join Date
    Jul 1999
    Location
    Fairfax, Virginia
    Posts
    314

    Re: I can't read this one registry key...but all others...*Resolved*

    Thanks!

    I needed this too.
    Steve Stunning

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