
API Calls in Windows NT as well as Windows 95/98
Will the following API calls work in Windows NT as well as
Windows95/98 to open, read, and close the registry, or do I need to
use something different (and if so, what)?
Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA"
(ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As
Long, ByVal samDesired As Long, phkResult As Long) As Long
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
Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long)
As Long