Repository navigation
Conversation
0a1e0d9 to
dc4ee4a
Compare
|
This PR is stale because it has been open for 90 days with no activity. |
UWP does not support ``CreateFileW`` because it is only compatible with the Win32 desktop API.
3d9703d to
28f445c
Compare
|
Please don't force push (https://devguide.python.org/getting-started/pull-request-lifecycle/index.html#don-t-force-push). In my first high level look this seems to change behavior of existing cases which we need to separate out from "use the new function". 1-1 move is a lot simpler to get in than move and change behavior. |
|
Well, for Windows Desktop is no behavior change:
For UWP The second commit is only a small refactor. This has tested and works for Apps with embedded Python like Kodi on Xbox. |
Windows: use
CreateFile2on Windows UWP build.UWP does not support
CreateFileWbecause it is only compatible with the Win32 desktop API.CreateFile2is available in all supported Windows versions (it could be used for everything) but for now created a wrapper to use only in UWP and avoid side effects or unexpected behavior changes on regular Windows builds.UWP also needs convert absolute paths to relative paths due the security restrictions, so the wrapper solution is good because it does both things at the same time.