[Solved] Re: Windows registry PermissionError

Mike Dewhirst miked at dewhirst.com.au
Fri May 13 02:19:41 EDT 2022


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.

Thanks again Eryk

Cheers

mike

>      HKEY_PERFORMANCE_DATA
>
> WinAPI RegConnectRegistryW() only matters when the target computer is
> a different machine, in which case an RPC proxy handle is returned.


-- 
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://mail.python.org/pipermail/python-list/attachments/20220513/f671056e/attachment.sig>


More information about the Python-list mailing list