In the past I wrote a game using the C programming language. Recently I was exploring the idea of porting it to the Universal Windows Platform, and potentially to the Windows Store.
After reading the docs, and spending some time on it, I managed to properly package it, and successfully install it locally as a UWP app.
I realized however, that up until now, the game was distributed as one folder, that when launched will look for the game's files locally. This means that if the game is run from a different folder (like when using a shortcut) it won't be able to find the local files to read. This is also a problem when it becomes a UWP app, since it is installed in the system, and can be launched from anywhere.
I've read in the docs this page: File access permissions, which describes how to get the install directory and read files from it. However the examples given are in C#.
How can I implement a similar functionality in C? The ideal solution would let me read files that are part of the package when it's installed.