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