title: Executing wmi.Registry.EnumKey gives type mismatch error
body: <p>I was trying to lookup all the subkeys under a particular registry key using wmi.Registry.EnumKey() . But it keeps on throwing type mismatch error. I used the below code snippet : </p>
  
  <pre><code>import _winreg
  import wmi
  r = wmi.Registry ()
  result, names = r.EnumKey (hDefKey=_winreg.HKEY_LOCAL_MACHINE,sSubKeyName=r"Software\Microsoft\Windows\CurrentVersion\Uninstall")
  </code></pre>
  
  <p>Error observed:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "", line 1, in module<br>
    File"build\bdist.win-amd64\egg\wmi.py", line 431, in <strong>call</strong></p>
    
    <p>handle_com_error ()</p>
    
    <p>File "build\bdist.win-amd64\egg\wmi.py", line 241, in handle_com_error</p>
    
    <p>raise klass (com_error=err)</p>
    
    <p>wmi.x_wmi: x_wmi: Unexpected COM Error (-2147352567, 'Exception
    occurred.', (0,u'SWbemProperty', u'Type mismatch ', None, 0,
    -2147217403), None)</p>
  </blockquote>
  
  <p>Any help would be great.</p>