-
Does anyone know of a way to check to see if registry files exist before trying to use them. My code relies heavily on certain registry files and if these are not present for the current user then I need to run a regisry file to install them. The problem is I need to check if they exist and if not to return a value to tell me so.
Thanks
-
Code:
Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
RegOpenKey hKey, path, hCurKey
IF hCurKey then ....