Hello,
I'm currently working on a software where I need to get the windowhandle of an HTAwindow.
Currently I'm Using this code
At all times, I'm getting 0 as my handle.
But I don't understand why.
I even tried using the FindWindow but I'm getting the same results.
Anybody has an idea why?
Cheers,
Kenneth
I'm currently working on a software where I need to get the windowhandle of an HTAwindow.
Currently I'm Using this code
Code:
Process[] procs = Process.GetProcessesByName("MSHTA");
IntPtr hWnd;
debug.print(procs.count()) // returns 1
hWnd = procs[0].MainWindowHandle;
debug.print(hWnd.ToString()); // returns 0
But I don't understand why.
I even tried using the FindWindow but I'm getting the same results.
Anybody has an idea why?
Cheers,
Kenneth
Comment