From bdedaabf2ce092592a87517a8c9c7d63aeab17d5 Mon Sep 17 00:00:00 2001 From: Mark Harmstone Date: Thu, 4 Jan 2024 23:35:37 +0000 Subject: [PATCH] crt: Add cut-down wtsapi32 to onecore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mark Harmstone Signed-off-by: Martin Storsjö --- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/lib-common/onecore.mri | 1 + mingw-w64-crt/lib-common/wtsapi32_onecore.def | 18 ++++++++++++++++++ mingw-w64-crt/lib32/wtsapi32_onecore.def | 18 ++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 mingw-w64-crt/lib-common/wtsapi32_onecore.def create mode 100644 mingw-w64-crt/lib32/wtsapi32_onecore.def diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index 70e1ffd81..1ac5bb965 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am @@ -2528,6 +2528,7 @@ endif %/libwldap32.a \ %/libwpprecorderum.a \ %/libws2_32.a \ + %/libwtsapi32_onecore.a \ %/libxmllite.a rm -f $@ cd $(dir $@) && $(AR) -M < $(abspath $<) diff --git a/mingw-w64-crt/lib-common/onecore.mri b/mingw-w64-crt/lib-common/onecore.mri index c27759a06..da7216d4c 100644 --- a/mingw-w64-crt/lib-common/onecore.mri +++ b/mingw-w64-crt/lib-common/onecore.mri @@ -110,6 +110,7 @@ ADDLIB libwkscli.a ADDLIB libwldap32.a ADDLIB libwpprecorderum.a ADDLIB libws2_32.a +ADDLIB libwtsapi32_onecore.a ADDLIB libxmllite.a SAVE END diff --git a/mingw-w64-crt/lib-common/wtsapi32_onecore.def b/mingw-w64-crt/lib-common/wtsapi32_onecore.def new file mode 100644 index 000000000..1ff0ebf71 --- /dev/null +++ b/mingw-w64-crt/lib-common/wtsapi32_onecore.def @@ -0,0 +1,18 @@ +LIBRARY "WTSAPI32.dll" +EXPORTS +WTSDisconnectSession +WTSEnumerateProcessesExW +WTSEnumerateProcessesW +WTSEnumerateSessionsExW +WTSEnumerateSessionsW +WTSFreeMemory +WTSFreeMemoryExW +WTSLogoffSession +WTSQuerySessionInformationW +WTSQueryUserToken +WTSRegisterSessionNotification +WTSUnRegisterSessionNotification +WTSVirtualChannelClose +WTSVirtualChannelOpen +WTSVirtualChannelOpenEx +WTSVirtualChannelQuery diff --git a/mingw-w64-crt/lib32/wtsapi32_onecore.def b/mingw-w64-crt/lib32/wtsapi32_onecore.def new file mode 100644 index 000000000..b8f0efe4f --- /dev/null +++ b/mingw-w64-crt/lib32/wtsapi32_onecore.def @@ -0,0 +1,18 @@ +LIBRARY "WTSAPI32.dll" +EXPORTS +WTSDisconnectSession@12 +WTSEnumerateProcessesExW@20 +WTSEnumerateProcessesW@20 +WTSEnumerateSessionsExW@20 +WTSEnumerateSessionsW@20 +WTSFreeMemory@4 +WTSFreeMemoryExW@12 +WTSLogoffSession@12 +WTSQuerySessionInformationW@20 +WTSQueryUserToken@8 +WTSRegisterSessionNotification@8 +WTSUnRegisterSessionNotification@4 +WTSVirtualChannelClose@4 +WTSVirtualChannelOpen@12 +WTSVirtualChannelOpenEx@12 +WTSVirtualChannelQuery@16