A Microsoft platform for building and publishing apps for Windows devices.
The UWP platform doesn't support all of the standard Win32 file APIs. From looking at your error it appears that the "log file" component you are using is trying to use the standard Win32 file I/O and failing.
While some of the Win32 file APIs are supported there are a number of limitations. You will need to update the C++ code to use file APIs that work as expected from the UWP environment and / or make sure that you are accessing storage locations that are available from your UWP app.
For example: When called from a Windows Store app, CreateFile2 is simplified. You can open only files or directories inside the ApplicationData.LocalFolder or Package.InstalledLocation directories.
In most cases we recommend retrofitting your code to use the StorageFile APIs for easy interaction with the WinRT components. I've included links below.
Reference:
Alternatives to Windows APIs in Universal Windows Platform (UWP) apps
https://learn.microsoft.com/en-us/uwp/win32-and-com/alternatives-to-windows-apis-uwp#storage
APIs present on all Windows 10 devices
https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-apis
CreateFile2 function
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2?redirectedfrom=MSDN
I hope this helps,
James


