https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b9148b8c62170b82ecc720...
commit b9148b8c62170b82ecc7203f2e358ee2f6c190d1 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sat Mar 23 16:31:15 2019 +0100 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sat Mar 23 16:31:15 2019 +0100
[WTSAPI32][PSDK] Addendum to 27ed609a: Some of the WTS_INFO_CLASS values are NT6-SP1+ --- dll/win32/wtsapi32/wtsapi32.c | 6 ++++++ sdk/include/psdk/wtsapi32.h | 2 ++ 2 files changed, 8 insertions(+)
diff --git a/dll/win32/wtsapi32/wtsapi32.c b/dll/win32/wtsapi32/wtsapi32.c index 5838f1ac09..60658fd29c 100644 --- a/dll/win32/wtsapi32/wtsapi32.c +++ b/dll/win32/wtsapi32/wtsapi32.c @@ -372,7 +372,11 @@ BOOL WINAPI WTSQuerySessionInformationW( return FALSE; }
+#if (NTDDI_VERSION >= NTDDI_WS08) if (WTSInfoClass > WTSIsRemoteSession) +#else + if (WTSInfoClass > WTSClientProtocolType) +#endif { SetLastError(ERROR_INVALID_PARAMETER); return FALSE; @@ -447,6 +451,7 @@ BOOL WINAPI WTSQuerySessionInformationW( return TRUE; }
+#if (NTDDI_VERSION >= NTDDI_WS08) case WTSIdleTime: case WTSLogonTime: case WTSIncomingBytes: @@ -457,6 +462,7 @@ BOOL WINAPI WTSQuerySessionInformationW( SetLastError(ERROR_NOT_SUPPORTED); return FALSE; } +#endif /* (NTDDI_VERSION >= NTDDI_WS08) */
default: { diff --git a/sdk/include/psdk/wtsapi32.h b/sdk/include/psdk/wtsapi32.h index b9dbb18154..5fc98e5fb6 100644 --- a/sdk/include/psdk/wtsapi32.h +++ b/sdk/include/psdk/wtsapi32.h @@ -59,6 +59,7 @@ typedef enum tagWTS_INFO_CLASS WTSClientAddress, WTSClientDisplay, WTSClientProtocolType, +#if (NTDDI_VERSION >= NTDDI_WS08) WTSIdleTime, WTSLogonTime, WTSIncomingBytes, @@ -72,6 +73,7 @@ typedef enum tagWTS_INFO_CLASS WTSValidationInfo, WTSSessionAddressV4, WTSIsRemoteSession +#endif /* (NTDDI_VERSION >= NTDDI_WS08) */ } WTS_INFO_CLASS;
typedef enum _WTS_CONNECTSTATE_CLASS