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,