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