I will prevent a window from iTunes to be opened.
I googled a lot but can’t find an iTunes library that allows me to control such things, so I think I must get back to basics and close it after it opens, but how?
I think:
- Tick a timer every 500 ms
- Check if the window handle is opened
- Close it
Is that possible?
How can I recognize a window from this application on other computers (I will give away my application)?
Language is C#.Net 2.0.
Yes it’s an option to find the window and close it. However the user will still see it.
You can do the PInvoke method of FindWindow or use the C# ones (prefer those)
From here
This is only for closing the top application, I dont know if you can find the subwindow with Process.
I know you can with PInvoke, see example here
or