Skip to content

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

Merged
Duncan Horn (dunhor) merged 2 commits into
microsoft:masterfrom
Brainy0207:add-registry-32-bit-key-flags
Aug 7, 2026
Merged

feat: add support for 32-bit registry access in key_access enum#616
Duncan Horn (dunhor) merged 2 commits into
microsoft:masterfrom
Brainy0207:add-registry-32-bit-key-flags

Conversation

@Brainy0207

Copy link
Copy Markdown
Contributor

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
ContributorAuthor

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
Jan Oltmann (Brainy0207)force-pushed the add-registry-32-bit-key-flags branch from f3ed9e0 to cf6a369CompareMay 12, 2026 14:20
@Brainy0207

Copy link
Copy Markdown
ContributorAuthor

@microsoft-github-policy-service agree

@Brainy0207

Copy link
Copy Markdown
ContributorAuthor

I have added write32 to match #632

@dunhor
Duncan Horn (dunhor) merged commit a2ddaac into microsoft:masterAug 7, 2026
15 checks passed
Sign up for freeto 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

@Brainy0207@dunhor