Which module should I import to use a PyHKEY?
Question: I'm attempting to win32api.RegLoadKey part of the pywin32 extension, however,
I am assuming I need to create a PyHKEY first. But I don't know which module
PyHKEY is in. The documentation is equally useless.
<http://docs.activestate.com/activepython/2.4/pywin32/PyHKEY.html> Note also
that the documentation which is there does note that a PyHKEY is just a
PyHANDLE, which is just an int, but using a int in the call causes Exception:
`error: (6, 'RegLoadKey', 'The handle is invalid.')`

Any help would be greatly appreciated!

A quick update:

    
    
    import win32api
    
    handle = int()
    
    win32api.RegLoadKey(handle, "tempKey", "C:\\Users\\Default\\NTUSER.dat")
    


Answer: Python is dynamic; you don't "use" types unless you create your own object,
otherwise you use objects given to you.
[`win32api.RegOpenKeyEx()`](http://docs.activestate.com/activepython/2.4/pywin32/win32api__RegOpenKeyEx_meth.html)
will give you a key object you can use, or, as the documentation for
`win32api.RegLoadKey()` states, you can use one of 4 predefined constants to
load a hive root.

