I am integrating with some thirdparty software that runs with an .hta file inside of mshta.exe. My app is written in C#
I need to detect if the .hta file is already running so I can launch it before I start sending messages to it.
With past integrations with other third parties, I have checked for the exe in the process list, but I don't think that I can just look for mshta.exe because they could be running some other .hta file.
I also tried grabbing the process.MainWindowTitle
from Process.GetProcesses()
, but even though the mshta.exe window is showing a title, the MainWindowTitle
property is blank.
Does anyone know a method where I could figure out that mshta.exe is running a specific hta file?