_winreg problem

Georges JEGO gjego at free.fr
Sat Oct 9 12:31:34 CEST 2004

Brad Tilley wrote:
> Thanks, besides using OpenKey() correctly, I found that the values did 
> indeed have to be ints...

Because you fixed the type to REG_DWORD in the SetValueEx call...

print _winreg.SetValueEx.__doc__
will show you the other possible types, you probably want REG_SZ.

-- Georges

More information about the Python-list mailing list