[WTSAPI32][PSDK] Addendum to 27ed609a: Some of the WTS_INFO_CLASS values are NT6-SP1+

This commit is contained in:
Hermès Bélusca-Maïto 2019-03-23 16:31:15 +01:00
parent 27ed609acd
commit b9148b8c62
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 8 additions and 0 deletions

View file

@ -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:
{

View file

@ -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