On 13/05/2022 4:37 pm, Eryk Sun wrote:
On 5/13/22, Mike Dewhirst wrote:
On 13/05/2022 4:14 pm, Eryk Sun wrote:
Since self.connect() is always called, you should document that the
initial hkey parameter has to be one of the following predefined key
handles:
HKEY_LOCAL_MACHINE
HKEY_
On 5/13/22, Mike Dewhirst wrote:
> On 13/05/2022 4:14 pm, Eryk Sun wrote:
>> Since self.connect() is always called, you should document that the
>> initial hkey parameter has to be one of the following predefined key
>> handles:
>>
>> HKEY_LOCAL_MACHINE
>> HKEY_USERS
>
> I'm targeting HK
On 13/05/2022 4:14 pm, Eryk Sun wrote:
Since self.connect() is always called, you should document that the
initial hkey parameter has to be one of the following predefined key
handles:
HKEY_LOCAL_MACHINE
HKEY_USERS
I'm targeting HKEY_CURRENT_USER so I assume HK_USERS includes that.
Since self.connect() is always called, you should document that the
initial hkey parameter has to be one of the following predefined key
handles:
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_PERFORMANCE_DATA
WinAPI RegConnectRegistryW() only matters when the target computer is
a different machi
Eryk
Many thanks. It is working perfectly now. See below for the reworked code.
Cheers
Mike
On 13/05/2022 1:42 pm, Eryk Sun wrote:
On 5/12/22, Mike Dewhirst wrote:
access=wr.KEY_ALL_ACCESS + wr.KEY_WRITE,
import winreg as wr class Registry: def __init__(self, computer=None,
On 5/12/22, Mike Dewhirst wrote:
>
> access=wr.KEY_ALL_ACCESS + wr.KEY_WRITE,
The access parameter is a bit mask of access rights that combine via
bitwise OR (|), not via arithmetic addition.
KEY_ALL_ACCESS (0x000F_003F) is a superset of KEY_WRITE (0x0002_0006):
KEY_WRITE = (
I'm trying to copy a value from HKLM to HKCU for application rollout via
bulk installation by an administrator but individual Windows user setup.
Getting this ...
Traceback (most recent call last):
File "D:\Users\mike\envs\chemdata\registry\wreg\wreg.py", line 84, in
curegistry.setvalu