From: Richard Lamboj on

Hello,

if i want to read, write a key and set a value, does i only need to set
KEY_WRITE, or does i need to set KEY_READ, KEY_WRITE and KEY_SET_VALUE?

This questions is related to the OpenKey Function.

http://docs.python.org/py3k/library/winreg.html <- The other Access modes are
missing in the Documentation, or i need new glasses.

Kind Regards,

Richi
From: Tim Roberts on
Richard Lamboj <richard.lamboj(a)bilcom.at> wrote:
>
>if i want to read, write a key and set a value, does i only need to set
>KEY_WRITE, or does i need to set KEY_READ, KEY_WRITE and KEY_SET_VALUE?
>
>This questions is related to the OpenKey Function.

You need KEY_READ|KEY_WRITE|KEY_SET_VALUE. Those constants are straight
from the Windows API.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.