开发者

Write DWORD Value with Python's _winreg?

开发者 https://www.devze.com 2023-01-28 18:10 出处:网络
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'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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消