#ifndef _WINSTA_H
// rev
NTSYSAPI
BOOLEAN
NTAPI
WinStationGetAllProcesses(
_In_opt_ HANDLE ServerHandle,
_In_ ULONG Level,
_Out_ PULONG NumberOfProcesses,
_Out_ PTS_ALL_PROCESSES_INFO *Processes
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-TSTS] specification.