From b302da2e927c35b14c25bdf14e260f32742be309 Mon Sep 17 00:00:00 2001 From: Martin Haimberger Date: Thu, 12 Feb 2015 01:31:00 -0800 Subject: [PATCH] wtsapi: added handler for LogonUser and LogoffUser --- libfreerdp/core/channels.c | 4 +++- libfreerdp/core/server.c | 9 +++++++++ libfreerdp/core/server.h | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libfreerdp/core/channels.c b/libfreerdp/core/channels.c index 53e36b918..9bc8ee0c7 100644 --- a/libfreerdp/core/channels.c +++ b/libfreerdp/core/channels.c @@ -243,7 +243,9 @@ static WtsApiFunctionTable FreeRDP_WtsApiFunctionTable = FreeRDP_WTSEnableChildSessions, /* EnableChildSessions */ FreeRDP_WTSIsChildSessionsEnabled, /* IsChildSessionsEnabled */ FreeRDP_WTSGetChildSessionId, /* GetChildSessionId */ - FreeRDP_WTSGetActiveConsoleSessionId /* GetActiveConsoleSessionId */ + FreeRDP_WTSGetActiveConsoleSessionId, /* GetActiveConsoleSessionId */ + FreeRDP_WTSLogonUser, + FreeRDP_WTSLogoffUser }; PWtsApiFunctionTable FreeRDP_InitWtsApi(void) diff --git a/libfreerdp/core/server.c b/libfreerdp/core/server.c index 92716fbb8..a9406e4af 100644 --- a/libfreerdp/core/server.c +++ b/libfreerdp/core/server.c @@ -1375,3 +1375,12 @@ DWORD WINAPI FreeRDP_WTSGetActiveConsoleSessionId(void) { return 0xFFFFFFFF; } +BOOL WINAPI FreeRDP_WTSLogoffUser(HANDLE hServer) +{ + return FALSE; +} + +BOOL WINAPI FreeRDP_WTSLogonUser(HANDLE hServer, LPCSTR username, LPCSTR password, LPCSTR domain) +{ + return FALSE; +} diff --git a/libfreerdp/core/server.h b/libfreerdp/core/server.h index 53ce96101..7d53cc9b4 100644 --- a/libfreerdp/core/server.h +++ b/libfreerdp/core/server.h @@ -173,4 +173,7 @@ BOOL CDECL FreeRDP_WTSGetChildSessionId(PULONG pSessionId); DWORD WINAPI FreeRDP_WTSGetActiveConsoleSessionId(void); +BOOL WINAPI FreeRDP_WTSLogoffUser(HANDLE hServer); +BOOL WINAPI FreeRDP_WTSLogonUser(HANDLE hServer, LPCSTR username, LPCSTR password, LPCSTR domain); + #endif /* FREERDP_CORE_SERVER_H */