#ifndef _WINSTA_H
NTSYSAPI
BOOLEAN
NTAPI
WinStationQueryInformationW(
_In_opt_ HANDLE ServerHandle,
_In_ ULONG SessionId,
_In_ WINSTATIONINFOCLASS WinStationInformationClass,
_Out_writes_bytes_(WinStationInformationLength) PVOID pWinStationInformation,
_In_ ULONG WinStationInformationLength,
_Out_ PULONG pReturnLength
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-TSTS] specification.