return FALSE;
}
+#if (NTDDI_VERSION >= NTDDI_WS08)
if (WTSInfoClass > WTSIsRemoteSession)
+#else
+ if (WTSInfoClass > WTSClientProtocolType)
+#endif
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
return TRUE;
}
+#if (NTDDI_VERSION >= NTDDI_WS08)
case WTSIdleTime:
case WTSLogonTime:
case WTSIncomingBytes:
SetLastError(ERROR_NOT_SUPPORTED);
return FALSE;
}
+#endif /* (NTDDI_VERSION >= NTDDI_WS08) */
default:
{
WTSClientAddress,
WTSClientDisplay,
WTSClientProtocolType,
+#if (NTDDI_VERSION >= NTDDI_WS08)
WTSIdleTime,
WTSLogonTime,
WTSIncomingBytes,
WTSValidationInfo,
WTSSessionAddressV4,
WTSIsRemoteSession
+#endif /* (NTDDI_VERSION >= NTDDI_WS08) */
} WTS_INFO_CLASS;
typedef enum _WTS_CONNECTSTATE_CLASS