|
-
Oct 30th, 2003, 03:37 PM
#1
Thread Starter
Lively Member
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.
-
Oct 30th, 2003, 04:29 PM
#2
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.
-
Oct 30th, 2003, 04:32 PM
#3
Thread Starter
Lively Member
Thank you! That's exactly what I needed!
-
Apr 8th, 2005, 03:51 PM
#4
Hyperactive Member
Re: I can't read this one registry key...but all others...*Resolved*
Thanks!
I needed this too.
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
|