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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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