My Current Obsession...

Trying to figure out a way to change IE7’s user-agent string on a per connection basis….at the moment I think the trick is finding out what the current connections HINTERNET handle is…but how to get that out of IE? If anyone has any ideas feel free to drop in a comment…