Click to See Complete Forum and Search --> : Registry


Atlantisoft
February 25th, 2000, 02:39 PM
i have the functions RegCreateKey and RegSetValue but what about RegGetValue? where can i get that or something that does that?

The Matrix
February 25th, 2000, 02:55 PM
click on the link to download the project files
http://mojoprograms.virtualave.net/registry.zip

Shawn Nagase
February 25th, 2000, 02:59 PM
Public Declare Function RegQueryValue Lib "advapi32.dll" Alias "RegQueryValueA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal lpValue As String, lpcbValue As Long) As Long

--- or ---

Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long

Either of these will return the value from a registry key.