Process32first

[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool Process32First(IntPtr hSnapshot,
   ref PROCESSENTRY32 lppe
);

Microsoft documentation: Link

Last updated