My app is using wininet to get and post data. I've gotten it to work fine.
The issue (and deal breaker so far) I'm having is that every few
InternetOpenURL calls the auto-proxy config throws an alert box that hangs
the program until the OK button is pressed.
I thought originally that I could use API's like SetWindowsHookEx and
SendMessage to find and destroy the window (even tried using SetTimer API
call an exe from a different thread), but after enumerating the windows,
I am at a total loss. I still think the different thread option holds the
most promise, but I am indeed stuck and if I don't find a solution, I'm
(first project for a new client after 2 years of no work).
I looked at Spy++ to see if I could get any more info and I found the Thread
ID that was in a "Wait" state (due to user response required (clicking the
"OK" button on the alert box - which i need to do programmattically - which
brings me back to the reason for this excercize)) - any ideas on how I can
use this to my advantage?
Any ideas are appreciated.