I am using Scala and I couldn't find something that would give me the PrcoessID from the Processname. Neither in Java, Scala or Winapi.
At the moment I am usingandCode:FindWindowA, but I would prefer something that would give me an arrayCode:GetWindowThreadProcessId
So if I would have 10 instances of Notepad, I could access them withCode:val process: Array[Int] = GetProcessIdFromExeName("Notepad") // scala codeI know that something like this exists in .NET, but is there something similar in the WINAPI or Java/Scala?Code:process(0-9)