title: Creating an array of Registry Keys in VBS without using oReg.EnumKey
body: <p>I use this line of code to fill an array with the registry keys at the end of sPath. It works in every instance except Win7. Works on Win8, Win10 no problem. I have verified the keys exist, so it's not that.</p>
  
  <pre><code>ret = oReg.EnumKey( &amp;H80000002, sPath, guidlist)
  </code></pre>
  
  <p>I have tried to read out what the return value of "ret", but it appears to be blank or perhaps NULL? I use 'objLog.WriteLine "this is ret " &amp; ret'. but it only writes out "This is ret"</p>
  
  <p>Is there another way to create the array using VBS?</p>