Skip to content

feat: add support for 32-bit registry access in key_access enum#616

Open
Brainy0207 wants to merge 1 commit into
microsoft:masterfrom
Brainy0207:add-registry-32-bit-key-flags
Open

feat: add support for 32-bit registry access in key_access enum#616
Brainy0207 wants to merge 1 commit into
microsoft:masterfrom
Brainy0207:add-registry-32-bit-key-flags

Conversation

@Brainy0207
Copy link
Copy Markdown

This PR extends the key_access enum in registry_helpers.h to support 32-bit registry access. The following new values have been added:

  • read32: Opens a key for reading from the 64-bit registry.
  • readwrite32: Opens a key for reading and writing from the 64-bit registry.

Additionally, the get_access_flags function has been updated to handle these new enum values appropriately.

This is a follow up to #555 which added access to the 64-bit registry for 32-bit processes.
This adds access to the 32-bit registry for 64-bit processes.

Fixes #435

@Brainy0207
Copy link
Copy Markdown
Author

It seems #632 will add write and write64 keys to key_access, so we would end up without a write32 key, if both PRs are merged. Depending on which PR gets merged first, the other one should add the write32 key then.

The key_access enum was missing values to access the 32-bit view of
the registry from a 64-bit process.

Add missing read32, write32 and readwrite32 values that map to
KEY_READ/WRITE/ALL_ACCESS | KEY_WOW64_32KEY respectively.
@Brainy0207 Brainy0207 force-pushed the add-registry-32-bit-key-flags branch from f3ed9e0 to cf6a369 Compare May 12, 2026 14:20
@Brainy0207
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@Brainy0207
Copy link
Copy Markdown
Author

I have added write32 to match #632

@Brainy0207 Brainy0207 requested a review from dunhor May 12, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessing 32-bit registry view from 64-bit process

2 participants