I'm trying to create a new binary value under the HKCU\Software\Microsoft\Internet Explorer\New Windows\Allow key. Unfortunately I am having some trouble. How do I create a new zero-length binary key?

I'm using this function which uses the RegCreateKeyEx in the AdvAPI32 API.

VB Code:
  1. Public Function CreateNewKey(sNewKeyName As String, lPredefinedKey As Long)
  2.     Dim hNewKey As Long         'handle to the new key
  3.     Dim lRetVal As Long         'result of the RegCreateKeyEx function
  4.  
  5.     lRetVal = RegCreateKeyEx(lPredefinedKey, sNewKeyName, 0&, _
  6.               vbNullString, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, _
  7.               0&, hNewKey, lRetVal)
  8.     RegCloseKey (hNewKey)
  9. End Function

And this is the code to use the function:
VB Code:
  1. For i = 1 To 3
  2.         strValue = RegGetValue$(HKEY_CURRENT_USER, strSubKey, arrSites(i))
  3.         If strValue = "" Then
  4.             frmMain.CreateNewKey strSubKey, HKEY_CURRENT_USER
  5.             frmMain.SetKeyValue strSubKey, arrSites(i), "", 3
  6.         Else
  7.         End If
  8.     Next


Does this look like I'm doing it right?