The difference with v3 is the addition of GetUserName.
On 2020-05-11 9:08, Martin Storsjö wrote:
On Mon, 11 May 2020, Steve Lhomme wrote:
The original libwinstorecompat is designed to be used with libmincore.
- CreateEventW is allowed
- CreateMutexW is allowed
- CreateSemaphoreW is allowed
- InitializeCriticalSection is allowed
- GetFileAttributes is allowed
- WaitForSingleObject is allowed
- GetTickCount is allowed
- SetUnhandledExceptionFilter is allowed
- TerminateProcess is allowed
- IsDBCSLeadByteEx is allowed
- SetErrorMode is allowed
- GetACP is allowed
- LocalAlloc/LocalFree are allowed
- Sleep/SleepEx are allowed
- SetFilePointer is allowed
- Tls functions are allowed
- GetConsoleOutputCP is allowed
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis
To select the set of API's allowed by this library, define WINSTORECOMPAT
and build with _WIN32_WINNT >= _WIN32_WINNT_WIN10.
---
.../winstorecompat/Makefile.am | 25 ++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/mingw-w64-libraries/winstorecompat/Makefile.am
b/mingw-w64-libraries/winstorecompat/Makefile.am
index a1f79947..028ac147 100644
--- a/mingw-w64-libraries/winstorecompat/Makefile.am
+++ b/mingw-w64-libraries/winstorecompat/Makefile.am
@@ -2,7 +2,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
AM_CFLAGS = -Wall -Wstrict-aliasing=2 -pedantic
-lib_LIBRARIES = libwinstorecompat.a
+lib_LIBRARIES = libwinstorecompat.a \
+ libwindowsappcompat.a
libwinstorecompat_a_SOURCES = \
src/beginthread.c \
@@ -43,3 +44,25 @@ libwinstorecompat_a_SOURCES = \
src/RtlRestoreContext.c \
src/GetUserName.c \
$(NULL)
+
+libwindowsappcompat_a_SOURCES = \
+ src/beginthread.c \
+ src/GetModuleHandle.c \
+ src/LoadLibraryW.c \
+ src/CreateFileW.c \
+ src/UnhandledExceptionFilter.c \
+ src/VirtualProtect.c \
+ src/getenv.c \
+ src/GetFileSize.c \
+ src/SHGetFolderPathW.c \
+ src/QueueTimer.c \
+ src/Crypto.c \
+ src/GetStartupInfo.c \
+ src/EnumProcessModules.c \
+ src/RtlAddFunctionTable.c \
+ src/RtlCaptureContext.c \
+ src/RtlVirtualUnwind.c \
+ src/RtlRestoreContext.c \
+ src/GetUserName.c \
+ $(NULL)
+libwindowsappcompat_a_CFLAGS = $(AM_CFLAGS)
-D_WIN32_WINNT=_WIN32_WINNT_WIN10
--
2.17.1
LGTM, I'll apply this tonight unless there's objections.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public