I am working on porting a pre-existing C++ project to run in a UWP container. Also, this project is purely R&D and I will not be publishing to the store (restricted APIs are okay for me).
This project's build system outputs a very simple 'package index' which it traverses at runtime to find available plugin DLLs. This package index is essentially a directory tree with basic text files for leaf nodes. It currently uses the FindFirstFileEx family of APIs to traverse this tree at runtime.
From MSDN, I see that FindFirstFileEx (and related) are available on UWP. However, I'm also targeting devices (HoloLens, IoT Core) where I won't necessarily have access to the filesystem to put the package index on the device. And so, I'd like to include this package index into the appx bundle and access it from there.
What I'm hoping to do is the following:
- Manually add this package index directory structure to my UWP project and mark it as 'content'
- Make a small modification to the pre-existing code's search path to make it search within the .applications' packaged files
I'm having trouble determining whether #2 is possible. Is it possible to access application content from the filesystem from within the UWP application via FindFirstFileEx?
Thanks.