1

I'm working on a project that requires me to write a DWORD value to the registry. I know how to write other values, but I'm not sure how to write this value.

I need it to be set to 1. How is this done using _winreg with Python?

1 Answer 1

1

Use SetValueEx() to set the value and the type, types are listed here: http://docs.python.org/library/_winreg.html#value-types You probably want _winreg.REG_DWORD

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.