[DllImport("wtsapi32.dll", SetLastError = true)] public static extern bool WTSEnumerateProcesses( IntPtr hServer, int Reserved, int Version, ref IntPtr ppProcessInfo, ref int pCount );
Microsoft documentation: Link
Last updated 1 year ago