Skip to content
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

misc fixes to allow build in Windows UWP builds #75

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

robUx4
Copy link

@robUx4 robUx4 commented Jun 8, 2023

UWP stands for Universal Windows Platform. The API is restricted, some calls are forbidden. But we can replace them by equivalent ones.

If the system allows newer API's we should downversion it.
If the environment forces the UNICODE define it will use the wrong call.
The API is always available in Win8+ even in UWP builds, unlike CreateFileW.
The API is pretty much the same. CONOUT is also supported [1].

[1] https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2#consoles
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.

1 participant