Re: read from registry - vb 6.0

From: Mr. X. <no_spam_please_at_nospam_please.com>
Date: Wed, 9 Jan 2008 08:46:16 +0200
Message-ID: <fm1qia$bfs$1@news2.netvision.net.il>


I suppose if I will search in google,
I will find this thread.

I didn't find any answer, yet,
because there are several problems (ERROR_MORE_DATA ...) long l
long ln
string value
l = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "<full_path>", 0, 1, hnd) ... ' the above is O.K and l = 0.
ln = 0
l = RegQueryValueEx(hnd, "a_key", 0, 1, value, ln)

after the above l = 234 (ERROR_MORE_DATA) and ln got the correct size !

I will appreciate if I find the answer in this thread, please.

Thanks :) Received on Wed Jan 09 2008 - 00:46:16 CST

Original text of this message