Public Declare Function RegRestoreKey Lib "advapi32.dll" Alias "RegRestoreKeyA" (ByVal hKey As Long, ByVal lpFile As String, ByVal dwFlags As Long) As Long
Note:
To deal with win32API in visual basic, just fire up VB6 API viewer. If it's not available yet, you can activate it from Add-Ins|Add-In manager menu by selecting the VB 6 API Viewer and then checking the "Load Behaviour" section as needed. Then you need to load the API declarations from within the API Viewer by using the File|Load Text File and selecting the win32API text file. The rest is pretty much intuitive.
After declaring the function above in the beginning of the module, you can call the corresponding function anywhre inside the module.
Always keep in your mind that the VB6 API viewer is your companion when dealing with win32API directly in VB.