Skip to content

Preliminary patches for Universal Windows Platform support

Nirbheek Chauhan requested to merge nirbheek/preliminary-uwp-support into master

commit cdc2a798:

uwp: workaround a false positive in certification of glib
It seems that the Windows App Certification Kit searches all files and
binaries for the regex '\<reg\>' (or something like it) and throws
errors if it exists. Supposedly this is for preventing apps from
running REG.EXE

https://blogs.msdn.microsoft.com/appconsult/2017/08/16/how-to-validate-if-your-application-is-compliant-with-the-windows-store-polices-windows-10-and-windows-10-s/

commit f38a395e:

gmodule: Add support for loading UWP packaged DLLs
LoadLibrary() is not available when building for the Universal Windows
Platform, which is used for shipping apps to the Windows Store on all
devices (Windows Desktop, Windows Phone, Surface, XBox, etc).

Apps are not allowed to load arbitrary DLLs from the system. The only
DLLs they can load are those that are bundled with the app as assets.
LoadPackagedLibrary() can be used to access those assets by filename.

The function is meant to be a drop-in replacement for LoadLibrary(),
and the HANDLE returned can be treated the same as before.

There are more changes in the pipeline for UWP (Universal Windows Platform) support, but these two are the easy ones.

This is needed for gstreamer to be able to load plugins: https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/190

Merge request reports