-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Illegal" use of RegNotifyChangeKeyValue on WINAPI_PARTITION_GAMES platforms #4624
Comments
I believe we already have consumers of this for xbox, and I've never heard anyone have any problems. I'll try to find someone internally to follow up and ask. |
That being said, I don't think it'd be a blocker to not support registry changes for xbox. I don't see it as a common scenario for some external entity to change the registry while a game is running, and then expect the game to dynamically respond. Thoughts? |
It is not just registry access, there are other functions pulled in with some dodgy defines: advapi32:
ntdll:
Following are defined for
None of these libraries/symbols are in GDK. I couldn't find any mentions whether linking these libs is allowed for Xbox builds, but at least |
Those other ones should be fine. I believe I had an internal email thread on them years ago and there were no issues with referencing them. But I don't remember the details. |
FYI, while looking, I found that this bug is essentially a duplicate of #3564. |
If it fails WACK I expect Xbox certification is even more strict or at least comparable in requirements to UWP. |
I pinged my internal thread asking for clarification. |
I found this official (?) answer in Xbox forums advising against advapi32: https://forums.xboxlive.com/questions/137981/advapi32libのリンクについて.html |
Describe the bug
GAMECORE builds, a.k.a. GDK, a.k.a. WINAPI_PARTITION_GAMES don't normally have access to
RegNotifyChangeKeyValue
function:winreg.h
for GAMES API familyCurrently msquic cheats by:
WINAPI_FAMILY_PARTITION
guards inwinreg.h
/NODEFAULTLIB
list in GDK samples.I believe GDK titles are not supposed to link to any regular windows libs, except those provided by GDK itself. As a result msquic essentially uses undocumented function in GAMECORE build. If correct, then this can likely affect game consoles certification of any product bundling msquic as a dependency.
Affected OS
Additional OS information
GDK builds
MsQuic version
main
Steps taken to reproduce bug
Expected behavior
Actual outcome
Additional details
No response
The text was updated successfully, but these errors were encountered: