mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-05-12 19:04:32 +02:00

This has two benefits: 1. It's the same function as what's used to open keys, ensuring that the options is consistent. 2. It allows the desired permissions to be explicitly set instead of being inferred from the "default securitya ccess mask". See: https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regopenkeya#return-value