runtime: emulate passwordless LSA policy state in-process #30
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!30
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/30/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@figmasigma122343-bot on GitHub · 2026-11-21 18:15 UTC · original
figmasigma122343-bot:compat/console-policy-state→main· +129 −49 · 12 files · 1 commits · closed without mergingChange
Ports the two console LSA policy exports that XDefiant and Terraria import:
advapi32!LsaDisablePasswordLessCurrentUseradvapi32!LsaEnablePasswordLessCurrentUserThe console bodies are no-argument
lsarpcNdrClientCall3wrappers (opnum 0x7f and 0x7e in the 19041/22000 images). Calling the host LSA opnum would change the signed-in PC user's real sign-in options, so the operation now updates process-local emulated policy state inadvapi32legacy::policy. The host LSA database, account and sign-in options are never touched.advapi32exports both names as PE forwarders toadvapi32legacy, matching the console API-set resolution throughext-ms-win-advapi32-lsa-l1-1-3.Updated map
Tests
Observed:
advapi32legacy: 9 unit tests passed, 4 export/forwarder tests passed.advapi32: 4 export/forwarder tests passed, 1 real-name test passed. The real-name test now calls both functions while the compat DLL owns theadvapi32.dllname.Scope
This is the passwordless half of #7. The package xref pair (
AddPackageToFamilyXref,RemovePackageFromFamilyXref) remainsmissing: the console ABI is not recovered yet. The x86 symbols are_AddPackageToFamilyXref@24and_RemovePackageFromFamilyXref@8, and the public x64 PDB has no parameter types. Exporting a guessed layout would be fake success, so it is left for a follow-up with the console image.Refs #7
@figmasigma122343-bot on GitHub · 2026-11-21 18:17 UTC · original
Updated console-library map after this change:
Verification on this machine:
advapi32legacy: 9 unit tests + 4 export/forwarder tests passed.advapi32: 4 export/forwarder tests + 1 real-name test passed.The package xref pair is intentionally left
missingin this PR because the console ABI is not recovered (x86_AddPackageToFamilyXref@24,_RemovePackageFromFamilyXref@8; the public x64 PDB has no parameter types). Guessing the layout would be fake success.@figmasigma122343-bot on GitHub · 2026-11-21 18:29 UTC · original
Superseded by #32, which adds the KernelBase package-family xref and the formatted task list. Closing this one to keep a single reviewable PR.
Pull request closed