https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c376b5acea67a34bcffd7…
commit c376b5acea67a34bcffd77812afa4fbb28656726
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Dec 23 00:54:23 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Dec 23 00:54:23 2019 +0100
[PSDK] Update wtsapi32.h. CORE-16441
---
sdk/include/psdk/wtsapi32.h | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/sdk/include/psdk/wtsapi32.h b/sdk/include/psdk/wtsapi32.h
index 5fc98e5fb67..119fcc6ac86 100644
--- a/sdk/include/psdk/wtsapi32.h
+++ b/sdk/include/psdk/wtsapi32.h
@@ -111,6 +111,13 @@ typedef enum _WTS_CONFIG_CLASS
WTSUserConfigfTerminalServerRemoteHomeDir
} WTS_CONFIG_CLASS;
+typedef enum _WTS_TYPE_CLASS
+{
+ WTSTypeProcessInfoLevel0,
+ WTSTypeProcessInfoLevel1,
+ WTSTypeSessionInfoLevel1
+} WTS_TYPE_CLASS;
+
typedef struct _WTS_PROCESS_INFOA
{
DWORD SessionId;
@@ -147,6 +154,33 @@ typedef struct _WTS_SESSION_INFOW
DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)
DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
+typedef struct _WTS_SESSION_INFO_1A
+{
+ DWORD ExecEnvId;
+ WTS_CONNECTSTATE_CLASS State;
+ DWORD SessionId;
+ char *pSessionName;
+ char *pHostName;
+ char *pUserName;
+ char *pDomainName;
+ char *pFarmName;
+} WTS_SESSION_INFO_1A, *PWTS_SESSION_INFO_1A;
+
+typedef struct _WTS_SESSION_INFO_1W
+{
+ DWORD ExecEnvId;
+ WTS_CONNECTSTATE_CLASS State;
+ DWORD SessionId;
+ WCHAR *pSessionName;
+ WCHAR *pHostName;
+ WCHAR *pUserName;
+ WCHAR *pDomainName;
+ WCHAR *pFarmName;
+} WTS_SESSION_INFO_1W, *PWTS_SESSION_INFO_1W;
+
+DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO_1)
+DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO_1)
+
typedef struct _WTS_SERVER_INFOA
{
LPSTR pServerName;
@@ -161,12 +195,14 @@ DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO)
#define WTS_CURRENT_SERVER_HANDLE ((HANDLE)NULL)
+#define WTS_CURRENT_SESSION (~0u)
void WINAPI WTSCloseServer(HANDLE);
BOOL WINAPI WTSConnectSessionA(ULONG, ULONG, PSTR, BOOL);
BOOL WINAPI WTSConnectSessionW(ULONG, ULONG, PWSTR, BOOL);
#define WTSConnectSession WINELIB_NAME_AW(WTSConnectSession)
BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL);
+BOOL WINAPI WTSEnableChildSessions(BOOL);
BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *);
BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *);
#define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses)