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